用来合并代码

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-05
  • 2018-05-07
  • 2019-12-10
  • 2019-07-25
  • 2021-07-26
  • 2021-11-18
  • 2022-01-16
猜你喜欢
  • 2021-10-12
  • 2019-07-17
  • 2021-11-01
  • 2021-11-30
相关资源
相似解决方案