git clone 所有远程分支到本地
打开git bash
git clone git地址/仓库名/
cd 仓库名/
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
cd ../
古之善为士者,微妙玄通,深不可识
打开git bash
git clone git地址/仓库名/
cd 仓库名/
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
cd ../