git merge 将多个commit合并为一条之--squash 选项
转自:
https://blog.csdn.net/themagickeyjianan/article/details/80333645
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
改进版本:合并多个提交为一条(git merge --squash branchname)
但是,操作方便并不意味着这样操作就是合理的,在某些情况下,我们应该优先选择使用--squash
选项,如下:
$ git merge --squash anotherbranch $ git commit -m "squash merge description"

更多精彩