1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-06 18:35:40 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}}`