git branch -r | grep -v ‘\->‘ | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all
git branch | while read line; do git checkout $line; git pull ; done
原文:https://www.cnblogs.com/shuiyonglewodezzzzz/p/11287859.html