Nice and easy. Works with git 1.6.3 and higher.
$ git rev-parse --abbrev-ref HEAD
master
About: Don't have much inspiration for an original bio right now...
Nice and easy. Works with git 1.6.3 and higher.
$ git rev-parse --abbrev-ref HEAD
master
You can also use any of the following.
Windows:
git branch | findstr \*
Linux:
git branch | grep \*