Git: refname 'master' is ambiguous

后端 未结 3 1986
故里飘歌
故里飘歌 2020-12-04 18:59

I\'ve looked at all of the other ambiguous refname questions and none of them seem to help. Why am I getting this warning?

$ git checkout master
warning: ref         


        
3条回答
  •  情深已故
    2020-12-04 19:42

    This just happened to me. I somehow had a file .git/master containing a sha. Not sure how that got there, but when I deleted it, the error went away. If you read the accepted answer carefully, this is "expected behavior" but you won't see that .git/master if you do e.g. git show-ref master because it follows slightly different rules.

提交回复
热议问题