Skip to content

Instantly share code, notes, and snippets.

@ebouchut
Created October 18, 2013 11:45
Show Gist options
  • Save ebouchut/7040412 to your computer and use it in GitHub Desktop.
Save ebouchut/7040412 to your computer and use it in GitHub Desktop.
Get the name of the current git branch
git name-rev --name-only $(git rev-parse HEAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment