git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
Created
March 30, 2022 11:30
-
-
Save davidjguru/38b8043ce5cc359755c600fc15011152 to your computer and use it in GitHub Desktop.
How to get all the code from remote repository from all the available remote branches.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment