Squash last n commits together
Squashes the last n commits together. This approach requires rewriting a commit message for the new sqashed changes, unlike running `git rebase`.
Authored by: Chris Johnsennum_commits
Command
Copy
git reset --soft HEAD~num_commits && git commit
Tags
Edit in GitHub
Copied