How can I delete all of my Git stashes at once?
Specifically I mean, with typing in one command.
I had another requirement like only few stash have to be removed, below code would be helpful in that case.
#!/bin/sh for i in `seq 5 8` do git stash drop stash@{$i} done
/* will delete from 5 to 8 index*/