abort-stash

stash workflow

Scenario: You apply a stash but there's a merge conflict. You want to discard all changes so that you can start from a blank slate.
Note that this will discard staged changes, so only use this if you're prepared to discard everything.

Usage: git abort-stash

CLI Command

git config --global alias.abort-stash "!git reset --merge"

.gitconfig Snippet

[alias]
  abort-stash = !git reset --merge