I have branches master and feature.
Feature has about 20 commits ahead of master.
I want to squash all commits together so when I merge I have one commit. Is there a way to do this with one command? I know I could do an interactive rebase; but I am looking for a command that makes this easy.
Yes!
On the master branch:
git merge --squash feature-branch