# Show What Is In A Stash

Usually when I want to inspect anything in git, I'll use `git show` with a specific ref. This can even be done with stash refs.

```bash
$ git stash list
stash@{0}: WIP on ...
stash@{1}: Some commit on ...

$ git show stash@{0}
# ...
```

The `git-stash` command has a built-in way of showing stashes that will save you from having to type out the somewhat awkward `stash@{n}` ref.

```bash
$ git stash show 1
```

This will show you the `stash@{1}` ref. You can also omit a number which will show you the latest stash (`stash@{0}`).

See `man git-stash` for more details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ploegert.gitbook.io/til/tools/git/show-what-is-in-a-stash.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
