Monthly Archives: May 2010

Fixing an ‘Ambiguous Head’ in Git

Git is great, but sometimes I feel you can shoot yourself in the foot with it when you don’t even know you’re holding a gun. If you are getting this message from git:

warning: refname 'HEAD' is ambiguous.

Try running git show-ref. In my case I had a local tag I created by accident named ‘head’. That’s what confusing command line options get you I suppose.


Filed under git