title: Is it possible to search through Git Stash items?
body: <p>So I'm learning about using Git Stash this week and figured out all of theses stashes have been accumulating on my system. I've misplaced some code and I now have a dozen stashes of code 0-11.</p>
  <p>Is there a way that I can search through these stashes for a string value in the files within the stash to find the code I'm looking for?
  or
  Do I just have to go through and reapply each stash to search/look in them for the code I'm trying to find?</p>
  <hr />
  <p>2021/03/18: Just an update from other information I have found that sort of relates.</p>
  <p>You can create a git alias to search all your <em><strong>branches</strong></em>.</p>
  <p>Modify you .gitconfig file, and just call by <em>'git stash-search &lt;pattern&gt;'</em></p>
  <pre><code>[alias]
    stash-search = &quot;!f() { git show $(git stash list | cut -d\&quot;:\&quot; -f 1) | grep \&quot;$@\&quot; ; }; f&quot; 
  </code></pre>