转自:

https://blog.csdn.net/themagickeyjianan/article/details/80333645

 

改进版本:合并多个提交为一条(git merge --squash branchname)

但是,操作方便并不意味着这样操作就是合理的,在某些情况下,我们应该优先选择使用--squash选项,如下:

$ git merge --squash anotherbranch
$ git commit -m "squash merge description"


相关文章:

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