This commit is contained in:
Joey Hess 2015-02-17 17:38:40 -04:00
parent d857e2104d
commit 1f19bd941e

View file

@ -106,11 +106,14 @@ with appropriate handling of the direct mode files.
## undoing changes in direct mode
There is also the `undo` command to do the equivalent of the above revert in a simpler way. Say you made a change in direct mode, the assistant dutifully committed it and you realise your mistake, you can try:
There is also the `undo` command to do the equivalent of the above revert
in a simpler way. Say you made a change in direct mode, the assistant
dutifully committed it and you realise your mistake, you can try:
git annex undo file
to revert the last change to `file`. Note that you can use the `--depth` flag to revert earlier versions of the file.
to revert the last change to `file`. Note that you can use the `--depth`
flag to revert earlier versions of the file.
## forcing git to use the work tree in direct mode