Files
30-seconds-of-code/git/snippets/apply-stash.md
2023-05-01 22:28:09 +03:00

21 lines
334 B
Markdown

---
title: Apply a stash
type: snippet
tags: [repository,stash]
author: chalarangelo
cover: obelisk
dateModified: 2021-04-13T21:10:59+03:00
---
Applies a specific stash.
- Use `git stash apply <stash>` to apply the given `<stash>`.
```shell
git stash apply <stash>
```
```shell
git stash apply stash@{1} # Applies `stash@{1}`
```