Skip to content

Origin

Stash entered Git in 2007 as a hidden stack for WIP changes; the word comes from mid-19th-century American English for a hidden store of money or supplies.

The word comes from mid-19th-century American English: a stash is a hidden store, originally of money or contraband. The verb "to stash" means to hide something for later. Git adopted the word in 2007 for its feature that hides working-tree changes on a stack, precisely mirroring the physical metaphor: a hidden place where you put something until you need it.

git stash is used to record the current state of the working directory and the index, but want to go back to a clean working directory. The command saves your local modifications away and reverts the working directory to match the HEAD commit.

— git-stash(1) manual, 2024
2007 · git stash aparece en Git 1.5.3
2018 · `git stash push` con `-m` mensaje (Git 2.13)
2019 · `git stash push -u` para untracked (reafirmado)
0 · número de clonaciones para stashes (local)
2 · operaciones típicaspush / pop