Git: Save Working Tree in a Temp Storage: git stash

By Xah Lee. Date:

you can save your current working dir into a temp storage. Do this:

# save working dir (all uncommitted changes) in a temp storage
git stash save

after you do this, the working tree will be clean.

to get it back, do:

# retrieve from stash
git stash pop

To list all your stash, do:

git stash list

for more detail, see man git-stash.

Patreon me $5. Ask me question on patreon