Created
September 13, 2019 01:31
-
-
Save maxwu/63bcad5d21be6feb1ee262f3cf66b800 to your computer and use it in GitHub Desktop.
Return the Git Branch name on local repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch 2>/dev/null | grep '^*' | colrm 1 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment