how could squash multiple commits without using git merge --sqaush code example Example: git squash last 2 commits git rebase -i HEAD~2