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