Read more

Git: Show current branch name only

Arne Hartherz
October 25, 2012Software engineer at makandra GmbH

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.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

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 10:02)