拉取所有远程分支到本地
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
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3