控制台下执行如下:
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
posted on 2016-09-21 16:51 iokde.com 阅读(178) 评论(0) 编辑 收藏 举报