git squash commits from one branch to another code example Example: squash commits on branch git rebase -i HEAD~20