1GIT-LFS-LOCK(1)                                                GIT-LFS-LOCK(1)
2
3
4

NAME

6       git-lfs-lock - Set a file as "locked" on the Git LFS server
7

SYNOPSIS

9       git lfs lock options path
10

DESCRIPTION

12       Sets  the  given file path as "locked" against the Git LFS server, with
13       the intention of blocking attempts by other users to update  the  given
14       path. Locking a file requires the file to exist in the working copy.
15
16       Once locked, LFS will verify that Git pushes do not modify files locked
17       by other users. See the description of the lfs.<url>.locksverify config
18       key in git-lfs-config(5) for details.
19

OPTIONS

21       -r name --remote=name
22              Specify the Git LFS server to use. Ignored if the lfs.url config
23              key is set.
24
25       --json Writes lock info as JSON to STDOUT if the command exits success‐
26              fully.  Intended  for interoperation with external tools. If the
27              command returns with a non-zero exit code, plain  text  messages
28              will be sent to STDERR.
29

SEE ALSO

31       git-lfs-unlock(1), git-lfs-locks(1).
32
33       Part of the git-lfs(1) suite.
34
35
36
37                                   July 2019                   GIT-LFS-LOCK(1)
Impressum