From 0551c9af5c1856634e4f3c8e2023daaabf7faa6b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 11 May 2015 13:03:41 -0400 Subject: comment --- .../comment_1_bb6022943ec739b1e80351c76f259e89._comment | 17 +++++++++++++++++ doc/git-annex-undo.mdwn | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 doc/forum/Using_a_glacier_remote_as_a_backup/comment_1_bb6022943ec739b1e80351c76f259e89._comment diff --git a/doc/forum/Using_a_glacier_remote_as_a_backup/comment_1_bb6022943ec739b1e80351c76f259e89._comment b/doc/forum/Using_a_glacier_remote_as_a_backup/comment_1_bb6022943ec739b1e80351c76f259e89._comment new file mode 100644 index 000000000..c6899e422 --- /dev/null +++ b/doc/forum/Using_a_glacier_remote_as_a_backup/comment_1_bb6022943ec739b1e80351c76f259e89._comment @@ -0,0 +1,17 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-05-11T16:58:01Z" + content=""" +Your status shows that test.txt is deleted. +`git annex get` does not un-delete files, it just gets the *content* +of a file (whether that file is deleted or not). + +You can use normal git commands to un-delete the file. Ie, "git checkout +text.txt". If you're using direct mode, you can't use such commands, but +can use "git annex undo" to undo a deletion. + +Normally, if you have a bare repo, you'll want to clone it to get a non-bare +repo. I suspect you did something else that resulted in your repo being in +this state were files are deleted. +"""]] diff --git a/doc/git-annex-undo.mdwn b/doc/git-annex-undo.mdwn index 391b373bf..1fda4778e 100644 --- a/doc/git-annex-undo.mdwn +++ b/doc/git-annex-undo.mdwn @@ -15,7 +15,7 @@ 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 +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. -- cgit v1.2.3