Back
How can I squash my last X commits together into one commit using Git?
Use the following commands to squash last n commits into single commit
git reset -- soft HEAD~n && git commit
31k questions
32.8k answers
501 comments
693 users