Skip to content

Instantly share code, notes, and snippets.

@AlonsoFloo
Last active September 19, 2018 10:15
Show Gist options
  • Save AlonsoFloo/178294403203ce3dc8e1ed41b4cb1cc6 to your computer and use it in GitHub Desktop.
Save AlonsoFloo/178294403203ce3dc8e1ed41b4cb1cc6 to your computer and use it in GitHub Desktop.
Pull all branches and tags from remote
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