0 votes
1 view
in Devops and Agile by (20k points)
edited by

How can I squash my last X commits together into one commit using Git?

1 Answer

0 votes
by (28.4k points)

Use the following commands to squash last n commits into single commit

 git reset -- soft HEAD~n &&
 git commit

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...