git查看各个branch之间的关系

1.pull所有branch

for remote in `git branch -r `; do git branch --track $remote; done

for remote in `git branch -r `; do git checkout $remote ; git pull; done

2.查看branch之间关系

git log --graph --all --decorate --simplify-by-decoration --oneline

branch - Track all remote git branches as local branches - Stack Overflow

branch - Relationship between n git branches - Stack Overflow



posted @ 2017-05-02 22:09  juejiang  阅读(2085)  评论(0编辑  收藏  举报