(created/git2cpp/stash.md)=
# git2cpp stash

```{parsed-literal}
Stash the changes in a dirty working directory away



git2cpp stash [OPTIONS] [SUBCOMMANDS]


OPTIONS:
&nbsp; -h,     --help              Print this help message and exit

SUBCOMMANDS:
&nbsp; [push](created/git2cpp/stash/push.md)                        Save your local modifications to a new stash entry and roll them
&nbsp;                             back to <span class=git2cpp-bold>HEAD </span>(in the working tree and in the index). The
&nbsp;                             &lt;message&gt; part is optional and gives the description along with
&nbsp;                             the stashed state.

&nbsp; [list](created/git2cpp/stash/list.md)                        List the stash entries that you currently have. Each stash entry
&nbsp;                             is listed with its name (e.g. <span class=git2cpp-bold>stash@</span>{0} is the latest
&nbsp;                             entry, <span class=git2cpp-bold>stash@</span>{1} is the one before, etc.), the name of
&nbsp;                             the branch that was current when the entry was made, and a short
&nbsp;                             description of the commit the entry was based on.

&nbsp; [pop](created/git2cpp/stash/pop.md)                         Remove a single stashed state from the stash list and apply it on
&nbsp;                             top of the current working tree state, i.e., do the inverse
&nbsp;                             operation of <span class=git2cpp-bold>git stash push</span>.

&nbsp; [apply](created/git2cpp/stash/apply.md)                       Like <span class=git2cpp-bold>pop</span>, but do not remove the state from the stash
&nbsp;                             list. Unlike <span class=git2cpp-bold>pop</span>, &lt;stash&gt; may be any commit that looks
&nbsp;                             like a commit created by <span class=git2cpp-bold>stash push</span> or .

&nbsp; [show](created/git2cpp/stash/show.md)                        Show the changes recorded in the stash entry as a diff between
&nbsp;                             the stashed contents and the commit back when the stash entry was
&nbsp;                             first created.

```

```{toctree}
:hidden:
stash/apply
stash/list
stash/pop
stash/push
stash/show
```
