学会思考
刻意练习

git rebase:简单而言就是把某个分支上的提交commit嫁接到另一个commit的后面,在这个过程中这些commit的base相对就改变了,也就叫变基。

git rebase <upstream> <branch>

如果提供了branch会首先checkout到这个branch上,然后再进行rebase操作;

git rebase master topic

git rebase master 

git rebase --onto <newbase> <upstream> <branch>

 

posted on 2017-05-30 15:31  Worty  阅读(235)  评论(0编辑  收藏  举报