Skip to content

Instantly share code, notes, and snippets.

@Rafe
Created August 11, 2016 18:14
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 Rafe/1a7ed1169af392c58f603977357c1e74 to your computer and use it in GitHub Desktop.
Save Rafe/1a7ed1169af392c58f603977357c1e74 to your computer and use it in GitHub Desktop.
ttwig
ttwig() {
branches=$(twig | sed 1,3d | rev | cut -d ' ' -f 1 | rev)
select branch in $branches; do
git checkout $branch
break;
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment