Git · History and recovery

git stash

Shelves uncommitted work temporarily. Do not use it as long-term storage.

Syntax
git stash push -m "wip"

Example

Example
git stash push -m "wip: sidebar"
git stash list
git stash pop

More in this group

git clean git reflog git reset --hard git reset --mixed git reset --soft git restore git revert git stash apply vs pop

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course