← TechnologyThe essentials of

Git stash: temporarily setting work aside with a defined scope

Publisher: ResumeMaker • 1 source

Published: 22 Oct 2026 16:11 · Updated: 22 Oct 2026 16:11

AI source check: 22 Oct 2026 14:04. This is not editorial approval.

In a few sentences

In brief

git stash stores selected local changes so the working tree can be used for another task. Untracked files are not included by default as they are with explicit --include-untracked.

Useful to know

git stash stores selected local changes so the working tree can be used for another task. Untracked files are not included by default as they are with explicit --include-untracked. [1]

Inspect what was stored before relying on it. apply and pop differ in what happens to the saved entry. Restoring can conflict, so a stash does not promise effortless transfer onto any changed base.

Sources

For further detail and to check the information:

  1. [1] Git - git-stash Documentation ↗