diff options
author | 2013-11-03 00:14:25 +0000 | |
---|---|---|
committer | 2013-11-03 00:14:25 +0000 | |
commit | 6a6840f80c270baf287610e4d9e347ab5b31b508 (patch) | |
tree | 8eb767ac10dd35d77f59929bed83aa95acac1a7e | |
parent | dda3910abdb22d1a6145fca26fc3c1bc89f74a62 (diff) |
-rw-r--r-- | doc/forum/How_to_cancel_an_add__63__.mdwn | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/forum/How_to_cancel_an_add__63__.mdwn b/doc/forum/How_to_cancel_an_add__63__.mdwn new file mode 100644 index 000000000..e0b0f1c8f --- /dev/null +++ b/doc/forum/How_to_cancel_an_add__63__.mdwn @@ -0,0 +1,5 @@ +What is the safest way to cancel a `git annex add` before the first commit? + +Say I first added a directory with a lot of small files to the annex and then (while watching the endless list of checksum operations) decide I should actually put them in a tar file and annex that instead. + +The problem seems to be that `git annex add` immediately replaces the files with symlinks instead of waiting for a commit, so I can't just `git reset largedir/; tar cvfz largedir.tgz largedir/; git annex add largedir.tgz`. |