1git-annex-unannex(1) General Commands Manual git-annex-unannex(1)
2
3
4
6 git-annex-unannex - undo accidental add command
7
9 git annex unannex [path ...]
10
12 Use this to undo an accidental git annex add command. It puts the file
13 back how it was before the add.
14
15 Note that for safety, the content of the file remains in the annex, un‐
16 til you use git annex unused and git annex dropunused.
17
18 This is not the command you should use if you intentionally added a
19 file some time ago, and don't want its contents any more. In that case
20 you should use git annex drop instead, and you can also git rm the
21 file.
22
24 --fast
25
26 Normally this does a slow copy of the file. In --fast mode, it
27 instead makes a hard link from the file to the content in the
28 annex. But use --fast mode with caution, because editing the
29 file will change the content in the annex.
30
31 --json Enable JSON output. This is intended to be parsed by programs
32 that use git-annex. Each line of output is a JSON object.
33
34 --json-error-messages
35 Messages that would normally be output to standard error are in‐
36 cluded in the JSON instead.
37
38 file matching options
39 The git-annex-matching-options(1) can be used to specify files
40 to unannex.
41
42 Also the git-annex-common-options(1) can be used.
43
45 git-annex(1)
46
48 Joey Hess <id@joeyh.name>
49
50 git-annex-unannex(1)