git-annex-unannex - undo accidental add command
Contents
Description
Use this to undo an accidental gitannexadd command. It puts the file back how it was before the add.
Note that for safety, the content of the file remains in the annex, until you use gitannexunused and
gitannexdropunused.
This is not the command you should use if you intentionally added a file some time ago, and don't want
its contents any more. In that case you should use gitannexdrop instead, and you can also gitrm the
file.
Name
git-annex-unannex - undo accidental add command
Options
--fast
Normally this does a slow copy of the file. In --fast mode, it instead makes a hard link from the
file to the content in the annex. But use --fast mode with caution, because editing the file will
change the content in the annex.
--json Enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of
output is a JSON object.
--json-error-messages
Messages that would normally be output to standard error are included in the JSON instead.
file matching options
The git-annex-matching-options(1) can be used to specify files to unannex.
Also the git-annex-common-options(1) can be used.
See Also
git-annex(1)
Synopsis
git annex unannex [path...]