版权声明:如需转载,请附上原文链接即可 https://blog.csdn.net/doujinlong1/article/details/82110467
git合并多个commit成为一个commit
在git使用中,可能会在合并代码的时候有大量的commit,如何能在合并分支的时候将许多commit转化为1个commit呢,可以使用以下命令:
git merge –squash 分支/commitId
e.g: git merge –squash 1234567897984541