Squash last n commits together

Squashes the last n commits together. This approach requires rewriting a commit message for the new squashed changes, unlike running `git rebase`.

Authored by: Chris Johnsen
Brought to you by Warp, a free terminal reimagined to work like a modern app.
num_commits

Command
Copy
git reset --soft HEAD~num_commits && git commit
Tags