Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Series
DevOps
PART 17
Undoing Changes in Git, Part 2: git revert
Safe undo in shared history: the inverse commit of git revert, choosing between reset and revert, reverting a merge commit with -m 1, reverting the revert before merging a branch again, several commits with --no-commit and conflicts during a revert.
6 Nov 2026
7 min
2
DevOps
PART 16
Undoing Changes in Git, Part 1: git restore and git reset
Undoing files in the working tree and index with git restore and bringing them back from history with --source; what the --soft, --mixed and --hard modes of git reset do to HEAD, the index and the working tree, getting back with ORIG_HEAD, and the old checkout/reset forms.
6 Nov 2026
8 min
2