GitHistory

git stash

Temporarily shelves uncommitted changes so you can switch context, then reapplies them later.

Syntax

git stash [pop | list | drop]

Examples

Stash current changes

git stash

Reapply the most recent stash and remove it from the list

git stash pop

Related commands