拉去git所有分支

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

你可能感兴趣的:(拉去git所有分支)