git - warning: refname 'HEAD' is ambiguous. I have No branch or tag Named "HEAD" -


i new git,when executed following command:

git status 

i got message:

warning: refname 'head' ambiguous. warning: refname 'head' ambiguous. .... 

if executed

git branch -a 

i got following:

* master   remotes/origin/master 

when executed this:

git show-ref 

got this:

64b0e322f945691e8365a0c1b5f93d6584cde4a5 refs/fetch_head e4fcd3322fb3cf4eb5b369c62e99073d60afec74 refs/head e4fcd3322fb3cf4eb5b369c62e99073d60afec74 refs/heads/master e5408db40c31909d50c25f60146499b09746b84b refs/remotes/origin/master 

i'm in china, know , network unstable,was related transport error when pull remote repo?

thansk lot!

the problem have both .git/refs/head file , .git/head file. .git/head file must present (and contents showed in comment reasonable). .git/refs/head file should not exist @ all, it's not clear created it.

(the file .git/refs/fetch_head should not exist, , again it's not clear created it.)


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -