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.
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.