git merge 将多个commit合并为一条之--squash 选项

转自:

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

 

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

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

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


posted @ 2019-04-24 13:50  龍☆  阅读(6399)  评论(0编辑  收藏  举报