How to tidy up your merge requests with Git
Feb 7, 2019Ronald van Zon

Summary
This post details techniques for tidying Git merge requests by consolidating commits. It introduces `git reset --soft HEAD~2` to revert commits while preserving changes, `git commit --fixup <commit-hash>` to create fixup commits, and `git rebase -i --autosquash <commit-hash>` to apply these fixups. It also mentions `git commit --amend` as an alternative for single-commit amendments and highlights the necessity of `git push --force` when rewriting history on remote repositories.