git squash last 2 commits

Shell
git rebase -i HEAD~2
Source

Also in Shell: