打开git bash
git clone git地址/仓库名/cd 仓库名/git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; donegit fetch --allgit pull --allcd ../