Pause, Save, Resume: The Definitive Guide to Stashing
Git stash is one of those commands that feels minor until the day you desperately need it — and then it becomes indispensable. It lets you temporarily shelve changes you've made to your working dir...

Source: DEV Community
Git stash is one of those commands that feels minor until the day you desperately need it — and then it becomes indispensable. It lets you temporarily shelve changes you've made to your working directory so you can switch context, pull updates, or work on something else, then come back and reapply those changes later. What is Git Stash? When you stash your work, Git takes all your uncommitted changes (both staged and unstaged) and saves them onto a stack of unfinished changes that you can reapply at any time. Your working directory is then cleaned up to match the HEAD commit. Think of it like putting your work in a drawer so you can clean your desk — the work isn't gone, it's just tucked away. Basic Usage Stashing your changes git stash This stashes all tracked, modified files. Your working directory reverts to a clean state. Stashing with a descriptive message git stash push -m "WIP: refactoring auth middleware" Always recommended. When you have multiple stashes, messages make it easy