index.html内容
<html>
<p>This is P1 ...</p>
<p>This is P2 ...</p>
</html>
修改内容:index.html
<html>
<p>This is P1 ...</p>
<p>This is P2 ...</p>
<p>This is P3 ...</p>
</html>
user1分支:
master分支:
将user1分支合并到master分支
查看状态
<html>
<p>This is P1 ...</p>
<p>This is P2 ...</p>
<p>This is P3 ...</p>
<p>This is P4 ...</p>
</html>
现在我们可以看一下用git merge和用git rebase所产生的历史的区别: