Where am I? * (no branch)

Posted by Neofizz on Stack Overflow See other posts from Stack Overflow or by Neofizz
Published on 2010-04-30T09:50:10Z Indexed on 2010/04/30 9:57 UTC
Read the original article Hit count: 167

Filed under:
|
|

I've been getting familiar with creating, merging and deleting branches. I like to know where I am so I don't commit work into the wrong branch. I use git branch -a to see which branches I have. I think the asterix * shows which branch I'm currently on. What does it mean when I get:

* (no branch)
master
origin/HEAD

Because when I $git checkout mybranch I expect to see

* mybranch
master
origin/HEAD

© Stack Overflow or respective owner

Related posts about git

Related posts about branches