Delete a stash

Git, Repository, Stash · Apr 13, 2021

Deletes a specific stash.

  • Use git stash drop <stash> to delete the given <stash>.
git stash drop <stash>
git stash drop stash@{1} # Deletes `stash@{1}`

Written by Angelos Chalaris

I'm Angelos Chalaris, a JavaScript software engineer, based in Athens, Greece. The best snippets from my coding adventures are published here to help others learn to code.

If you want to keep in touch, follow me on GitHub or Twitter.

More like this