git拉取远程所有分支代码到本地

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

s
链接:https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches

你可能感兴趣的:(git拉取远程所有分支代码到本地)