diff options
author | http://joeyh.name/ <http://joeyh.name/@web> | 2014-06-04 19:03:05 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-06-04 19:03:05 +0000 |
commit | 1b99a5e5bd24b4376d3df079f712ca13c51a01d7 (patch) | |
tree | cdc3b67d3f536b0a9861c22d66e57e60ebd676b7 | |
parent | 9a8894bafdde1bd4ed71ab931202e4dc29fdbe08 (diff) |
Added a comment
-rw-r--r-- | doc/forum/Revert_to_a_precedent_state_in_direct_mode/comment_1_1ae9f7defbab44621c3108973a4f683a._comment | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/forum/Revert_to_a_precedent_state_in_direct_mode/comment_1_1ae9f7defbab44621c3108973a4f683a._comment b/doc/forum/Revert_to_a_precedent_state_in_direct_mode/comment_1_1ae9f7defbab44621c3108973a4f683a._comment new file mode 100644 index 000000000..88f7fc895 --- /dev/null +++ b/doc/forum/Revert_to_a_precedent_state_in_direct_mode/comment_1_1ae9f7defbab44621c3108973a4f683a._comment @@ -0,0 +1,26 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="108.236.230.124" + subject="comment 1" + date="2014-06-04T19:03:05Z" + content=""" +I wish that I had a good answer for you, but since you're using direct mode, I really do not! + +You can run this to see the status: + + git -c core.bare=false status + +That's safe. Everything below has a good chance of losing data if not used carefully. + +You can run a command like this to *delete* an unwanted file (that is shown as a new file in the above). + + git -c core.bare=false rm -f unwanted_file + +If the status shows a file as being modified, you can run this to throw away the modified version. This does not put back the old version! It will leave you with a broken symlink. + + git -c core.bare=false reset modified_file + git -c core.bare=false checkout modified_file + git annex fsck + +If you're lucky, you can then `git annex get` to get the old version from some other repository that still has it. +"""]] |