Skip to content

Instantly share code, notes, and snippets.

@WolffDev
Created June 4, 2019 07:14
Show Gist options
  • Save WolffDev/4f08507099c9315bbf7b750829d1232d to your computer and use it in GitHub Desktop.
Save WolffDev/4f08507099c9315bbf7b750829d1232d 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