11.19.2013

git warning: refname 'HEAD' is ambiguous solved.

I had used Git on my local repository with bitbucket.
And my Sourcetree(GUI for Git) and XCode sourcecontrol was weird as making warning.
or not working well.

As the searching result, It is caused by same name HEAD.




Check your repository. (in your .git repository folder)

$ git show-ref
refs/heads/HEAD
refs/heads/master
refs/remotes/origin/HEAD
refs/remotes/origin/master


There is two HEAD.
You can change the name using below commend. 


$ git branch -m HEAD LocalHead

Or

$git branch -D HEAD

It is OK. You don't need to have HEAD repository on Local. (It made and work by itself in behind)



간단하죠? 

No comments: