Show just the current branch in Git September 17, 2022 by Tarik $ git rev-parse --abbrev-ref HEAD master This should work with Git 1.6.3 or newer.