forum/What happens after terminated add of huge picture folder?git-annexhttp://git-annex.branchable.com/forum/What_happens_after_terminated_add_of_huge_picture_folder__63__/git-annexikiwiki2015-02-18T06:58:59ZReseting to the git-annex branchhttp://git-annex.branchable.com/forum/What_happens_after_terminated_add_of_huge_picture_folder__63__/comment_1_0ba60f9625ccda45d59adbd385f5fe98/Samuel2015-02-17T09:21:12Z2015-02-17T09:21:12Z
<p>Well, it appears you explicitely asked for reseting to the git-annex branch with the following command
git annex reset --hard git-annex
To go back to the master branch, containing the symlinks, just do
git annex checkout master</p>
comment 2http://git-annex.branchable.com/forum/What_happens_after_terminated_add_of_huge_picture_folder__63__/comment_3_f628f146a0c652f812c09f78bd574b77/joey2015-02-17T21:41:21Z2015-02-17T21:31:42Z
<p>There is never a reason to run "git reset --hard git-annex"! For that matter,
don't mess with the git-annex branch if you have not read and understand
the <a href="http://git-annex.branchable.com/internals/">internals</a> documentation. Even if you have, it's entirely the wrong
thing to be messing with in this situation. It has nothing at all to do
with your problem, except that after running that completely random reset
command, you now have two problems..</p>
<p>The right answer to your interrupted add is something like:</p>
<ul>
<li><code>git reset --hard master</code></li>
<li>Or, run the <code>git-annex add</code> command again and let it resume</li>
<li>Or, run <code>git commit</code> to commit any changes the add made,
followed by <code>git annex unannex</code> to back out adding those files.</li>
</ul>
<p>Or, if this is an entirely new git repo that you have
never committed to before
(my guess based on the "bad default revision 'HEAD'"),
just <code>rm -rf .git</code> and start over.</p>
comment 3http://git-annex.branchable.com/forum/What_happens_after_terminated_add_of_huge_picture_folder__63__/comment_3_f0a2ec3d0b05d84fb05a1708313a6762/Rolandas2015-02-18T06:58:59Z2015-02-18T06:58:59Z
<p>Jes, it was an entirely new git repo and I removed .git folder and start over.<br>
The question was is there some sort of „UNDO“ in this case.<br>
I get it now.<br>
I will read internals documentation.<br>
Thank You very much!<br></p>