菜菜

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
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

 

posted on 2019-08-02 12:16  好吧,就是菜菜  阅读(261)  评论(0编辑  收藏  举报