拉取远程所有分支

git clone xxx

git branch -r | grep -v '->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done

git fetch --all

git pull --all

转载随笔/文章请保留出处和署名,谢谢!!
原文地址:https://www.cnblogs.com/W-it-H-ou-T/p/14389579.html