Skip to content

Instantly share code, notes, and snippets.

@rlandas
Created February 25, 2016 02:55
Show Gist options
  • Save rlandas/9b21e1331346fe6d7e24 to your computer and use it in GitHub Desktop.
Save rlandas/9b21e1331346fe6d7e24 to your computer and use it in GitHub Desktop.
GIT - get current branch - displays the current branch, useful for using the current branch into another command as input
git rev-parse --abbrev-ref HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment