用来合并代码

1、merge处理,这是大家比较能理解的方式。
2、rebase处理,中文此处翻译为衍合过程。

ref 1

https://www.liaoxuefeng.com/wiki/896043488029600/1216289527823648

前:
git: rebase
进行rebase

git: rebase
rebase 后:

git: rebase

rebase效果:

原本分叉的提交现在变成一条直线了

ref2

图解rebase

http://gitbook.liuhui998.com/4_2.html

git: rebase

使用git gc 处理提交垃圾后,实际上如下:

git: rebase

与merge 区别

git: rebase

后记

推荐使用AS 可视化工具来 解决 rebase 导致的冲突

相关文章:

  • 2021-06-22
  • 2022-03-09
猜你喜欢
  • 2021-12-09
  • 2021-08-23
  • 2021-11-01
  • 2022-01-12
相关资源
相似解决方案