Git: Squash Last N Commits Together


Here is an example of squashing the 5 most recent commits into one. This command will late you create a new commit message from scratch:

    git reset --soft HEAD~5 && 
    git commit
Archive