如何使用Git将我最后的X提交压缩成一个提交?
git squash git-squash
我正在尝试压缩一系列提交 - HEAD到HEAD~3.有没有快速的方法来做到这一点,还是我需要使用rebase --interactive?
git interactive rebase squash
git ×2
squash ×2
git-squash ×1
interactive ×1
rebase ×1