Created
March 16, 2014 22:08
-
-
Save mikemackintosh/9590558 to your computer and use it in GitHub Desktop.
git branch check
This file contains 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
ROCKET_GIT_BRANCH=$(git branch 2>/dev/null|sed 's/* //');if [[ -n $ROCKET_GIT_BRANCH ]]; then echo $ROCKET_GIT_BRANCH; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment