HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git unlock — Unlock a file in a Git repository so it can be modified by a commit. Part of `git-extras`. See also:

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcanclifilegit unlockunlockrepositorygit

Problem

How to use the git unlock command: Unlock a file in a Git repository so it can be modified by a commit. Part of git-extras. See also: git lock. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-unlock>.

Solution

git unlock — Unlock a file in a Git repository so it can be modified by a commit. Part of git-extras. See also: git lock. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-unlock>.

Enable the ability to commit changes of a previously-locked local file:
git unlock {{path/to/file}}

Code Snippets

Enable the ability to commit changes of a previously-locked local file

git unlock {{path/to/file}}

Context

tldr-pages: common/git unlock

Revisions (0)

No revisions yet.