Files
30-seconds-of-code/snippets/git/s/apply-stash.md
2023-05-07 16:07:29 +03:00

22 lines
348 B
Markdown

---
title: Apply a stash
type: snippet
language: git
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}`
```