Skip to content

Instantly share code, notes, and snippets.

@rsporteman
Last active April 2, 2019 00:17
Show Gist options
  • Save rsporteman/24c6c63951bccd2473d2b5b2af7a0211 to your computer and use it in GitHub Desktop.
Save rsporteman/24c6c63951bccd2473d2b5b2af7a0211 to your computer and use it in GitHub Desktop.
Git get All Branches

git branch -r | grep -v '->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done

git fetch --all

git pull --all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment