What has to be run to squash multiple commits (last N) into a single commit? code example Example: git squash last 2 commits git rebase -i HEAD~2