Skip to content

Instantly share code, notes, and snippets.

@pinkhominid
Last active July 8, 2019 19:46
Show Gist options
  • Save pinkhominid/7df9450d80247da391a4acd326c8fb1f to your computer and use it in GitHub Desktop.
Save pinkhominid/7df9450d80247da391a4acd326c8fb1f to your computer and use it in GitHub Desktop.
Quick Git branch checkout when you don't know the complete name
# where xyz is a branch name fragment, e.g. 525 (using a ticket number)
git checkout `git branch | grep xyz`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment