//远程分支覆盖本地所有分支
git pull --all
for branch in `git branch -a | grep remotes | grep -v HEAD`; do git checkout -f -t -B ${branch##remotes/origin/} $branch; done;
git checkout master
//远程分支覆盖本地所有分支
git pull --all
for branch in `git branch -a | grep remotes | grep -v HEAD`; do git checkout -f -t -B ${branch##remotes/origin/} $branch; done;
git checkout master
本文标题:Git更新所有分支.md
本文链接:https://www.haomeiwen.com/subject/jswguctx.html
网友评论