Skip to content

Instantly share code, notes, and snippets.

@Emuentes
Last active March 22, 2016 15:32
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 Emuentes/b1d75e9292a45d4a31ff to your computer and use it in GitHub Desktop.
Save Emuentes/b1d75e9292a45d4a31ff to your computer and use it in GitHub Desktop.
GIT checkout ALL remote branches other than "origin/master", "origin/develop", & origin/HEAD which comes up in the git remote branch list.
git branch -r | grep -v -E '(\*|master$|develop$|HEAD$)' | cut -f2- -d '/' | xargs -n 1 git checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment