2015-03-23 19:36:10 +00:00
|
|
|
# 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
|
2015-05-11 17:03:41 +00:00
|
|
|
tree to the same state it had before. To support undoing an undo of
|
2015-03-23 19:36:10 +00:00
|
|
|
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.
|
|
|
|
|
2021-05-10 19:00:13 +00:00
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
* The [[git-annex-common-options]](1) can be used.
|
|
|
|
|
2015-03-23 19:36:10 +00:00
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
2015-05-29 16:12:55 +00:00
|
|
|
[[git-annex-add]](1)
|
|
|
|
|
2015-03-23 19:36:10 +00:00
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|