Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Stashing only what you need
March 24, 2026
Ever found yourself halfway through a feature when a critical bug report comes in? Instead of stashing your entire workspace and losing your flow, try using 'git stash push -p'. This opens up a patch mode where you can interactively choose which hunks of code to tuck away and which to keep active. It’s a lifesaver when you’ve made some experimental changes you aren’t ready to commit but need to keep your current bug fix separate.