Page 1 of 1

squash the last N commits in git

Posted: Sat Apr 11, 2015 2:35 am
by fabiodelorenzo
example, squash the last 3 commits in git:

git reset --soft HEAD~3
git commit --edit