Squash my last X commits together using Git Asked 07 September, 2021 Viewed 956 times git rebase squash git-squash 57 Votes 30 Answers How can I squash my last X commits together into one commit using Git? git rebase squash git-squash Your reply on this question: Add Reply Cancel 30 Answer Order by Voted Recent Oldest Submit an answer Embed images in Question