git stash
git stash [push -m <msg>] · git stash pop
Risk: Careful
What it does
Puts your unsaved changes in a drawer, so your folder is clean.
When to use it
When you must switch branches but your work is not ready.
Example
$ git stashPut my changes away for now.
$ git stash popTake the newest stash back out.
$ git stash listSee what is in the drawer.
$ git stash -uAlso put away new, untracked files.
$ git stash dropThrow one stash away. It is gone!
Learn it in: Put work aside with stash · Official docs