Last active
September 19, 2018 10:15
-
-
Save AlonsoFloo/178294403203ce3dc8e1ed41b4cb1cc6 to your computer and use it in GitHub Desktop.
Pull all branches and tags from remote
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 fetch --all && for branch in `git branch -r | cut -s -d '/' -f2- | grep -v HEAD | grep -v remote | grep -v origin` ; do echo -e '\n\n\n-----START BRANCH-----' && git checkout $branch && git pull origin $branch && git status && echo '-----FINISH BRANCH-----' ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment