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
26           Writes lock info as JSON to STDOUT if the command exits
27           successfully. Intended for interoperation with external tools. If
28           the command returns with a non-zero exit code, plain text messages
29           will be sent to STDERR.
30

SEE ALSO

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