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 file matching options
32 The git-annex-matching-options(1) can be used to specify files
33 to unannex.
34
35 Also the git-annex-common-options(1) can be used.
36
38 git-annex(1)
39
41 Joey Hess <id@joeyh.name>
42
43 git-annex-unannex(1)