Last active
December 16, 2021 15:17
-
-
Save bqcuong/16589805b991e2d18e4d728a124f246f to your computer and use it in GitHub Desktop.
pull_all.sh
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
#!/bin/bash | |
for brname in `git branch -r | grep origin | awk '{gsub(/[^\/]+\//,"",$1); print $1}'`; do git checkout $brname;git pull; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment