Git神操作

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

一次性拉取所有分支代码

git branch | while read line; do git checkout $line; git pull ; done

猜你喜欢

转载自www.cnblogs.com/shuiyonglewodezzzzz/p/11287859.html