使用awk,sh,xargs git fetch所有远程分支
Hujiuxiang
・1 分钟阅读
git fetch所有远程分支
git branch -r | awk -F'/' '{print"git fetch"$1,$2}' | xargs -I {} sh -c {}