Skip to content

Instantly share code, notes, and snippets.

@bqcuong
Last active December 16, 2021 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bqcuong/16589805b991e2d18e4d728a124f246f to your computer and use it in GitHub Desktop.
Save bqcuong/16589805b991e2d18e4d728a124f246f to your computer and use it in GitHub Desktop.
pull_all.sh
#!/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