Skip to content

Instantly share code, notes, and snippets.

@justinleveck
Last active January 21, 2016 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinleveck/9f2ac027e8d0e729179f to your computer and use it in GitHub Desktop.
Save justinleveck/9f2ac027e8d0e729179f to your computer and use it in GitHub Desktop.
git checkout alias (with fuzzy match)
[alias]
co = "!f() { \
git checkout $(git branch | grep $1 | sed -e 's/^* //'); \
}; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment