merge branch into current squash commits code example Example: squash commits on branch git rebase -i HEAD~20