Skip to content

Instantly share code, notes, and snippets.

@VladRez
Created September 23, 2019 04:41
Show Gist options
  • Save VladRez/7b35e187f508bec101344669a82ae6f0 to your computer and use it in GitHub Desktop.
Save VladRez/7b35e187f508bec101344669a82ae6f0 to your computer and use it in GitHub Desktop.
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