Skip to content

Instantly share code, notes, and snippets.

@mikemackintosh
Created March 16, 2014 22:08
Show Gist options
  • Save mikemackintosh/9590558 to your computer and use it in GitHub Desktop.
Save mikemackintosh/9590558 to your computer and use it in GitHub Desktop.
git branch check
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