git pull远程所有分支

利用

git branch -r |grep -v "master" |awk '{print "git checkout -t " $1}'

重成命令后,执行。

其中,

git checkout -t origin/draft_getrandom

等于

git checkout -b draft_getrandom origin/draft_getrandom
原文地址:https://www.cnblogs.com/yanyichao/p/4378786.html