Git remote has master but no HEAD

Posted by dwynne on Stack Overflow See other posts from Stack Overflow or by dwynne
Published on 2010-03-09T13:46:39Z Indexed on 2010/04/16 18:03 UTC
Read the original article Hit count: 299

Filed under:
|

I'm new to Git, so I suspect that I'm misunderstanding something here, but I'll ask anyway.

Via TortoiseGit I do the following:

  • Init a new Git repo locally
  • Add a readme file to it and commit
  • Add a new remote
  • Push the new repo to the orgin (remote)

If I then Browse Refs I see the following:
heads/master
remotes/origin/master

What I find odd is that I don't see a HEAD on the remotes.

If I delete my local repo and then clone it from the server (I just pushed to above) and then browse the refs I see:
heads/master
remotes/origin/HEAD
remotes/origin/master

So why don't I see a remote head after the initial push?

NB. I've done the same via Git Bash command (ie. not Tortoise Git) and am seeing the same thing.

© Stack Overflow or respective owner

Related posts about git

Related posts about tortoisegit