forum/warning: remote HEAD refers to nonexistent ref, unable to checkoutgit-annexhttp://git-annex.branchable.com/forum/warning__58___remote_HEAD_refers_to_nonexistent_ref__44___unable_to_checkout/git-annexikiwiki2016-03-12T16:58:09Zcomment 1http://git-annex.branchable.com/forum/warning__58___remote_HEAD_refers_to_nonexistent_ref__44___unable_to_checkout/comment_1_c0d9758be80d1a349ffe82c80075bebd/divB2016-03-12T16:58:09Z2014-05-10T21:20:36Z
<p>I think, although not sure, that all of this is related of failing/inconsistent ssh calls.</p>
<p>I filed a bug here: https://git-annex.branchable.com/bugs/git-annex_ignores_GIT<strong>95</strong>SSH</p>
<p>The problem is that failure in ssh does not result in proper error messages in git-annex, resulting in inconsistent repositories.</p>
comment 2http://git-annex.branchable.com/forum/warning__58___remote_HEAD_refers_to_nonexistent_ref__44___unable_to_checkout/comment_2_c28dae2eb0ab825ee6d43735e04a18a3/joeyh.name2016-03-12T16:58:09Z2014-05-16T16:49:09Z
<p>After you add a file to a git repository, you have to git commit it. Using git-annex is no different. The walkthrough shows using <code>git commit</code>: <a href="http://git-annex.branchable.com/walkthrough/adding_files/">http://git-annex.branchable.com/walkthrough/adding_files/</a>; you can use <code>git-annex sync</code> if you prefer.</p>
<pre>
Permission denied (publickey,keyboard-interactive).
(merging origin/git-annex origin/synced/git-annex into git-annex...)
(Recording state in git...)
Remote origin does not have git-annex installed; setting annex-ignore
</pre>
<p>git-annex uses a heuristic to determine if git-annex-shell is not installed on a remote server: It tries to run it, and if that fails, it tries to run git fetch. If that succeeds it assumes this means it can log into the server, but git-annex-shell is not installed.</p>
<p>Above, that heuristic seems to have failed; you seem to have given the wrong password or something so it didn't run git-annex-shell, but then it was able to log in for the git fetch.</p>
<p>You will need to run this command to fix it up: <code>git config remote.origin.annex-ignore false</code></p>