New comment by fosslinux on void-packages repository https://github.com/void-linux/void-packages/pull/24015#issuecomment-668296349 Comment: To squash: `git rebase -i HEAD~2` Then replace the second commit with `f` or `s` (fixup or squash). Exit the editor and it will squash them. https://thoughtbot.com/blog/git-interactive-rebase-squash-amend-rewriting-history <-- I recommed this greatly for interactive rebase, this tutorial is made for this exact scenario when a reviewer asks you to do something :D