While git branch
will show you all branches and highlight the current one with an asterisk, it can be too cumbersome when working with lots of branches.
To show only the branch you are currently on, use:
git rev-parse --abbrev-ref HEAD
Posted by Arne Hartherz to makandra dev (2012-10-25 08:02)