拉取远程所有分支

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

posted @ 2021-02-08 17:04  W-it-H-ou-T  阅读(72)  评论(0编辑  收藏  举报