Git日常操作

拉取所有远程分支到本地

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 name; do git checkout $name; git pull ; done

原文地址:https://www.cnblogs.com/shuiyonglewodezzzzz/p/11051391.html