How do I determine what branch/tag I have checked out in git?

Posted by Avry on Stack Overflow See other posts from Stack Overflow or by Avry
Published on 2012-03-25T05:06:58Z Indexed on 2012/03/25 5:29 UTC
Read the original article Hit count: 200

Filed under:
|
|

I clone my source using git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git w/. Then I specify a specific branch/tag by doing git checkout <tag name> or git checkout origin/REL<release number>. Sometimes I forget what branch or tag I'm on.

In SVN I would do a svn info to figure out what branch/tag I'm using (I realize that git has distinct definitions for branch and tag but for my purposes they are the same).

How do I determine what branch/tag I am on?

© Stack Overflow or respective owner

Related posts about git

Related posts about branch