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 --json
28
29 Enable JSON output. This is intended to be parsed by programs
30 that use git-annex. Each line of output is a JSON object.
31
32 --json-error-messages
33 Messages that would normally be output to standard error are in‐
34 cluded in the JSON instead.
35
36 The git-annex-common-options(1) can also be used.
37
39 git-annex(1)
40
41 git-annex-add(1)
42
44 Joey Hess <id@joeyh.name>
45
46 git-annex-undo(1)