| 1 |
= git-lfs-lock(1) |
| 2 |
|
| 3 |
== NAME |
| 4 |
|
| 5 |
git-lfs-lock - Set a file as "locked" on the Git LFS server |
| 6 |
|
| 7 |
== SYNOPSIS |
| 8 |
|
| 9 |
[source,role=synopsis,subs="verbatim,quotes"] |
| 10 |
---- |
| 11 |
*git lfs lock* [_options_] _<path>_ |
| 12 |
---- |
| 13 |
|
| 14 |
== DESCRIPTION |
| 15 |
|
| 16 |
Sets the given file path as "locked" against the Git LFS server, with |
| 17 |
the intention of blocking attempts by other users to update the given |
| 18 |
path. Locking a file requires the file to exist in the working copy. |
| 19 |
|
| 20 |
Once locked, LFS will verify that Git pushes do not modify files locked |
| 21 |
by other users. See the description of the `lfs.<url>.locksverify` |
| 22 |
config key in git-lfs-config(5) for details. |
| 23 |
|
| 24 |
== OPTIONS |
| 25 |
|
| 26 |
`-r <name>`:: |
| 27 |
`--remote=<name>`:: |
| 28 |
Specify the Git LFS server to use. Ignored if the `lfs.url` config key is |
| 29 |
set. |
| 30 |
`-j`:: |
| 31 |
`--json`:: |
| 32 |
Writes lock info as JSON to STDOUT if the command exits successfully. Intended |
| 33 |
for interoperation with external tools. If the command returns with a non-zero |
| 34 |
exit code, plain text messages will be sent to STDERR. |
| 35 |
|
| 36 |
== SEE ALSO |
| 37 |
|
| 38 |
git-lfs-unlock(1), git-lfs-locks(1). |
| 39 |
|
| 40 |
Part of the git-lfs(1) suite. |