| 1 |
= git-lfs-locks(1) |
| 2 |
|
| 3 |
== NAME |
| 4 |
|
| 5 |
git-lfs-locks - Lists currently locked files from the Git LFS server. |
| 6 |
|
| 7 |
== SYNOPSIS |
| 8 |
|
| 9 |
[source,role=synopsis,subs="verbatim,quotes"] |
| 10 |
---- |
| 11 |
*git lfs locks* [_options_] |
| 12 |
---- |
| 13 |
|
| 14 |
== DESCRIPTION |
| 15 |
|
| 16 |
Lists current locks from the Git LFS server. |
| 17 |
|
| 18 |
== OPTIONS |
| 19 |
|
| 20 |
`-r <name>`:: |
| 21 |
`--remote=<name>`:: |
| 22 |
Specify the Git LFS server to use. Ignored if the `lfs.url` config key is |
| 23 |
set. |
| 24 |
`-i <id>`:: |
| 25 |
`--id=<id>`:: |
| 26 |
Specifies a lock by its ID. Returns a single result. |
| 27 |
`-p <path>`:: |
| 28 |
`--path=<path>`:: |
| 29 |
Specifies a lock by its path. Returns a single result. |
| 30 |
`--local`:: |
| 31 |
Lists only our own locks which are cached locally. Skips a remote call. |
| 32 |
`--cached`:: |
| 33 |
Lists cached locks from the last remote call. Contrary to `--local`, this will |
| 34 |
include locks of other users as well. This option is intended to display the |
| 35 |
last known locks in case you are offline. There is no guarantee that locks on |
| 36 |
the server have not changed in the |
| 37 |
meanwhile. |
| 38 |
`--verify`:: |
| 39 |
Verifies the lock owner on the server and marks our own locks by 'O'. Own |
| 40 |
locks are actually held by us and corresponding files can be updated for the |
| 41 |
next push. All other locks are held by someone else. Contrary to --local, this |
| 42 |
option will also detect locks which are held by us despite no local lock |
| 43 |
information being available (e.g. because the file had been locked from a |
| 44 |
different clone); it will also detect 'broken' locks (e.g. if someone else has |
| 45 |
forcefully unlocked our files). |
| 46 |
`-l <num>`:: |
| 47 |
`--limit=<num>`:: |
| 48 |
Specifies number of results to return. |
| 49 |
`-j`:: |
| 50 |
`--json`:: |
| 51 |
Writes lock info as JSON to STDOUT if the command exits successfully. Intended |
| 52 |
for interoperation with external tools. If the command returns with a non-zero |
| 53 |
exit code, plain text messages will be sent to STDERR. |
| 54 |
|
| 55 |
== SEE ALSO |
| 56 |
|
| 57 |
git-lfs-lock(1), git-lfs-unlock(1). |
| 58 |
|
| 59 |
Part of the git-lfs(1) suite. |