git合并多个commit成为一个commit
在git使用中,可能会在合并代码的时候有大量的commit,如何能在合并分支的时候将许多commit转化为1个commit呢,可以使用以下命令:
git merge –squash 分支/commitId
e.g: git merge –squash 1234567897984541
在git使用中,可能会在合并代码的时候有大量的commit,如何能在合并分支的时候将许多commit转化为1个commit呢,可以使用以下命令:
git merge –squash 分支/commitId
e.g: git merge –squash 1234567897984541