**simple solution:** `git reset --soft HEAD~5` `git commit -m "commit message"` `git push origin branch --force-with-lease`