Skip to content

Instantly share code, notes, and snippets.

@borgle
Created July 10, 2019 16:05
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 borgle/d4349c9fc3f31915d6e9926d7058958b to your computer and use it in GitHub Desktop.
Save borgle/d4349c9fc3f31915d6e9926d7058958b to your computer and use it in GitHub Desktop.
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
git branch --track ${branch##*/} $branch
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