- bookworm 10.20230126-3
- bookworm-backports 10.20240430-1~bpo12+1
- testing 10.20240927-1
- unstable 10.20241202-1
git-annex-undo(1) | General Commands Manual | git-annex-undo(1) |
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.
OPTIONS¶
- The git-annex-common-options(1) can be used.
SEE ALSO¶
AUTHOR¶
Joey Hess <id@joeyh.name>