Git 获取远程所有分支

by Web全栈工程师 on 2016 年 01 月 20 日

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

Comments on this entry are closed.

Previous post:

Next post: