How can I delete all of my Git stashes at once?

Question

How can I delete all of my Git stashes at once?

Specifically I mean, with typing in one command.

Answer

The following command deletes all your stashes:

git stash clear

From the git documentation:

clear

Remove all the stashed states.

IMPORTANT WARNING: Those states will then be subject to pruning, and may be impossible to recover (...).

Getting the difference between two repositories

Resolve conflicts using remote changes when pulling from Git remote