1git-annex-undo(1) General Commands Manual git-annex-undo(1)
2
3
4
6 git-annex-undo - undo last change to a file or directory
7
9 git annex [filename|directory] ...
10
12 When passed a filename, undoes the last change that was made to that
13 file.
14
15 When passed a directory, undoes the last change that was made to the
16 contents of that directory.
17
18 Running undo a second time will undo the undo, returning the working
19 tree to the same state it had before. To support undoing an undo of
20 staged changes, any staged changes are first committed by the undo com‐
21 mand.
22
23 Note that this does not undo get/drop of a file's content; it only op‐
24 erates on the file tree committed to git.
25
27 The git-annex-common-options(1) can be used.
28
30 git-annex(1)
31
32 git-annex-add(1)
33
35 Joey Hess <id@joeyh.name>
36
37 git-annex-undo(1)