git reset --soft HEAD~N
This rolls back the history and places all the changes in those commits into staging. Commit with a new final message and off you go.
git reset --soft HEAD~N
This rolls back the history and places all the changes in those commits into staging. Commit with a new final message and off you go.