Skip to content

Instantly share code, notes, and snippets.

@jonathanmarvens
Created March 30, 2014 18:56
Show Gist options
  • Save jonathanmarvens/9877754 to your computer and use it in GitHub Desktop.
Save jonathanmarvens/9877754 to your computer and use it in GitHub Desktop.
git symbolic-ref HEAD 2>/dev/null | sed -e 's|^refs/heads/||'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment