git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all
转载于:https://my.oschina.net/anxiaole/blog/3000377
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all
转载于:https://my.oschina.net/anxiaole/blog/3000377