Nice and easy. Works with git 1.6.3 and higher.
$ git rev-parse --abbrev-ref HEAD
master
Nice and easy. Works with git 1.6.3 and higher.
$ git rev-parse --abbrev-ref HEAD
master
For further actions, you may consider blocking this person and/or reporting abuse
Pranav Bakare -
Talles L -
Aditya Pratap Bhuyan -
Pranav Bakare -
Top comments (1)
You can also use any of the following.
Windows:
git branch | findstr \*
Linux:
git branch | grep \*