Add stash snippets
This commit is contained in:
16
snippets/apply-stash.md
Normal file
16
snippets/apply-stash.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: Apply a stash
|
||||
tags: stash,repository,intermediate
|
||||
---
|
||||
|
||||
Applies a specific stash.
|
||||
|
||||
- Use `git stash apply <stash>` to apply the given `<stash>`.
|
||||
|
||||
```sh
|
||||
git stash apply <stash>
|
||||
```
|
||||
|
||||
```sh
|
||||
git stash apply stash@{1} # Applies `stash@{1}`
|
||||
```
|
||||
Reference in New Issue
Block a user