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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
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)