github.com/x-oss-byte/git-lfs@v2.5.2+incompatible/docs/man/git-lfs-lock.1.ronn (about) 1 git-lfs-lock(1) -- Set a file as "locked" on the Git LFS server 2 =============================================================== 3 4 ## SYNOPSIS 5 6 `git lfs lock` [options] <path> 7 8 ## DESCRIPTION 9 10 Sets the given file path as "locked" against the Git LFS server, with the 11 intention of blocking attempts by other users to update the given path. Locking 12 a file requires the file to exist in the working copy. 13 14 Once locked, LFS will verify that Git pushes do not modify files locked by 15 other users. See the description of the `lfs.<url>.locksverify` config key in 16 git-lfs-config(5) for details. 17 18 ## OPTIONS 19 20 * `-r` <name> `--remote=`<name>: 21 Specify the Git LFS server to use. Ignored if the `lfs.url` config key is set. 22 23 * `--json`: 24 Writes lock info as JSON to STDOUT if the command exits successfully. Intended 25 for interoperation with external tools. If the command returns with a non-zero 26 exit code, plain text messages will be sent to STDERR. 27 28 ## SEE ALSO 29 30 git-lfs-unlock(1), git-lfs-locks(1). 31 32 Part of the git-lfs(1) suite.