Explore Courses Blog Tutorials Interview Questions
–1 vote
1 view
in DevOps and Agile by (29.3k points)

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

Specifically I mean, with typing in one command.

1 Answer

0 votes
by (50.2k points)

As you asked for a single command that deletes git stashes are

git stash clear 

As the documentation mentions that 


Remove all the stash entries. Note that those entries will then be subject to pruning, and may be impossible to recover


Thus you can delete all stashes at once.

Browse Categories