How to Get the Current Branch Name with git
['David Walsh']
David Walsh Blog
How to Get the Current Branch Name with git One such command line helper allows developers to always show the git branch in the command line. It's great to keep this snippet around for any automation you may create moving forward!