TLDR Web Dev · OPINIONS & ADVICE

GIT STASH DRIVEN REFACTORING

kobzol.github.io4 min read

Summary from the TLDR Web Dev newsletter

A common problem during development is when attempting to implement a new feature leads to a cycle of unrelated refactorings. This results in a messy and often non-compiling workspace. To get around this, use `git stash` to manage these refactorings by stashing current changes, addressing the refactoring, and then popping the stash to continue, working "inside-out."