Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Fix That Typo Without a New Commit
February 23, 2026
We've all been there: you just finished a commit only to realize you left a "console.log" or a tiny typo in the comments. Instead of creating a whole new "fix typo" commit that litters your history, use 'git commit --amend --no-edit'. This command tucks your staged changes into the most recent commit without changing the commit message. It keeps your git log clean and professional, making your pull requests a joy to review. Just remember, only do this if you haven't pushed your branch to a shared repository yet, as it rewrites history!