2015-03-23 19:36:10 +00:00
|
|
|
# NAME
|
|
|
|
|
2020-05-12 13:07:45 +00:00
|
|
|
git-annex lock - lock files to prevent modification
|
2015-03-23 19:36:10 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
git annex lock `[path ...]`
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2020-05-12 13:07:45 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
2015-03-23 19:36:10 +00:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
* file matching options
|
|
|
|
|
|
|
|
The [[git-annex-matching-options]](1)
|
|
|
|
can be used to specify files to lock.
|
|
|
|
|
2017-10-30 18:44:11 +00:00
|
|
|
* `--json`
|
|
|
|
|
|
|
|
Enable JSON output. This is intended to be parsed by programs that use
|
|
|
|
git-annex. Each line of output is a JSON object.
|
|
|
|
|
2018-02-19 18:28:17 +00:00
|
|
|
* `--json-error-messages`
|
|
|
|
|
2018-02-19 19:33:59 +00:00
|
|
|
Messages that would normally be output to standard error are included in
|
|
|
|
the json instead.
|
2018-02-19 18:28:17 +00:00
|
|
|
|
2015-03-23 19:36:10 +00:00
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
2015-05-29 16:12:55 +00:00
|
|
|
[[git-annex-add]](1)
|
|
|
|
|
|
|
|
[[git-annex-unlock]](1)
|
|
|
|
|
2015-03-23 19:36:10 +00:00
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|