Skip to content

Instantly share code, notes, and snippets.

@kirschem
Created November 30, 2020 10:36
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 kirschem/85c5a287747094c6f92041ebfe811d07 to your computer and use it in GitHub Desktop.
Save kirschem/85c5a287747094c6f92041ebfe811d07 to your computer and use it in GitHub Desktop.
Checks out all remote branches in a github repository
git fetch --all && git branch -r | tail -n +2 | sed 's#origin/##' | xargs -n1 git checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment