summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 0fd5b08a6..f1404af46 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -282,6 +282,22 @@ subdirectories).
are on a video hosting site, and the video is downloaded. This allows
importing e.g., youtube playlists.
+* `undo [filename|directory] ...`
+
+ 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. In order for 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.
+
* `watch`
Watches for changes to files in the current directory and its subdirectories,