11
I'm in the habit of stashing my changes in git and applying them again with git stash apply. This has the advantage of keeping me from accidentally losing a stash I made, but it also means that my list of stashes grows rather quickly.
When I'm done with a branch, I go back through my stash list and manually remove all of the stashes associated with the branch. Is there a way to do this in a single command?
For example, my current stash list looks like this:
kevin@localhost:~/my/dev/work$ git stash list
stash@{0}: WIP on master: 346f844 Commit comment
stash@{1}: WIP on second_issues: a2f63e5 Commit comment
stash@{2}: WIP on second_issues: c1c96a9 Commit comment
stash@{3}: WIP on second_issues: d3c7949 Commit comment
stash@{4}: WIP on second_issues: d3c7949 Commit comment
stash@{5}: WIP on second_issues: d3c7949 Commit comment
stash@{6}: WIP on second_issues: 9964898 Commit comment
Is there a command that would drop all of the stashes from second_issues?