git rebase

git rebase用于把一个分支的修改合并到当前分支

git merge <branch_name>也是合并分支,与git rebase不同的是git merge会合并两个分支产生一个新commit对象【拥有两个parent】。

git rebase 【rebase】顾名思义重新定义起点,即重新定义分支指向commit对象。从而改变commit history。

posted @ 2016-09-08 11:10  N神3  阅读(300)  评论(0编辑  收藏  举报