Created
September 14, 2018 23:37
-
-
Save TaekyungHeo/eaf6489c6392906de645ae911375bd76 to your computer and use it in GitHub Desktop.
fetch all git branches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches | |
| 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