summaryrefslogtreecommitdiff
path: root/doc/git-annex-undo.mdwn
blob: cfdfbc8e69050ae8b2804bdc0525e7c6d5b7717a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# NAME

git-annex undo - undo last change to a file or directory

# SYNOPSIS

git annex  `[filename|directory] ...`

# DESCRIPTION

When passed a filename, undoes the last change that was made to that
file.
  
When passed a directory, undoes the last change that was made to the
contents of that directory.
  
Running undo a second time will undo the undo, returning the working
tree to the same state it had before. To support undoing an undo of
staged changes, any staged changes are first committed by the
undo command.

Note that this does not undo get/drop of a file's content; it only
operates on the file tree committed to git.

# SEE ALSO

[[git-annex]](1)

[[git-annex-add]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

Warning: Automatically converted into a man page by mdwn2man. Edit with care.