Last active
June 20, 2018 20:22
-
-
Save excenter/48076ac3d3a5cbdf738930758eead43c to your computer and use it in GitHub Desktop.
scrape (fetch and pull) every branch of the current git repo
This file contains 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
git branch -r | grep -v '\->' | while read remote; | |
do git branch --track "${remote#origin/}" "$remote"; | |
done; | |
git fetch --all; | |
git pull --all; | |
#fetch and pull every branch of the current git repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as a javascript string