.TH git-annex-lock 1 .SH NAME git-annex-lock \- lock files to prevent modification .PP .SH SYNOPSIS git annex lock \fB[path ...]\fP .PP .SH DESCRIPTION Lock the specified annexed files, to prevent them from being modified. When no files are specified, all annexed files in the current directory are locked. .PP Locking a file changes how it is stored in the git repository (from a pointer file to a symlink), so this command will make a change that you can commit. .PP .SH OPTIONS .IP "file matching options" .IP The git-annex\-matching\-options(1) can be used to specify files to lock. .IP .IP "\fB\-\-json\fP" Enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. .IP .IP "\fB\-\-json\-error\-messages\fP" Messages that would normally be output to standard error are included in the json instead. .IP .SH SEE ALSO git-annex(1) .PP git-annex\-add(1) .PP git-annex\-unlock(1) .PP .SH AUTHOR Joey Hess .PP .PP