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
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