Skip to content

Instantly share code, notes, and snippets.

@VxDxK
Created November 13, 2020 13:38
Show Gist options
  • Save VxDxK/9f49e5f0870371c2156d03cc41e19cef to your computer and use it in GitHub Desktop.
Save VxDxK/9f49e5f0870371c2156d03cc41e19cef 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