Stash is a LIFO stack: each push adds an entry, each pop removes the top; the stack lives in
refs/stashand is local to the repository.
graph TD W[Working tree with changes] -->|stash push| S[Stash stack] S -->|stash pop| W2[Working tree restored] W2 -->|stash push| S2[Stash stack grows] S2 -->|stash drop| X[Dropped] style S fill:#E8F5E9 style X fill:#FFEBEE