git-lock: add page (#6756)

This commit is contained in:
nav1s
2021-10-14 03:17:49 +00:00
committed by GitHub
parent 93aaa02059
commit 89c1c27ff0

9
pages/common/git-lock.md Normal file
View File

@@ -0,0 +1,9 @@
# git lock
> Lock a file in a Git repository from being modified by a commit.
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-lock>.
- Disable the ability to commit changes of a local file:
`git lock {{path/to/file}}`