From 89c1c27ff0b71ee730c22774b5af72a21609d2fd Mon Sep 17 00:00:00 2001 From: nav1s <42621369+nav1s@users.noreply.github.com> Date: Thu, 14 Oct 2021 03:17:49 +0000 Subject: [PATCH] git-lock: add page (#6756) --- pages/common/git-lock.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pages/common/git-lock.md diff --git a/pages/common/git-lock.md b/pages/common/git-lock.md new file mode 100644 index 0000000000..8eb9eb220b --- /dev/null +++ b/pages/common/git-lock.md @@ -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: . + +- Disable the ability to commit changes of a local file: + +`git lock {{path/to/file}}`