Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Stash only what you need
March 25, 2026
Ever find yourself with a messy working directory where you've fixed a bug but also started some experimental refactoring? Instead of stashing everything, use "git stash push -p". This opens up a patch mode that lets you interactively select exactly which hunks of code you want to tuck away. It’s a lifesaver when you want to keep your experimental changes but need a clean slate to commit that urgent hotfix.