title: Is git stash branch-specific or for the whole repository?
body: <p>I went into a branch and did some work.  I wanted to go into another branch but didn't want to commit so I did <code>git stash</code>.  Then I did <code>git checkout &lt;otherbranch&gt;</code>.  I did some work there and, just like in the first branch, I wanted to switch out of it before committing the work.  So I did <code>git stash</code> there too.  I switched back to the first branch and tried to unstash it (<code>git stash pop</code>) thinking it would get the stash from that specific branch.  I was surprised that it unstashed the stash from <code>&lt;otherbranch&gt;</code> (latest stashed).  I was under the impression that stash is branch-specific but this behavior indicates that there is only one stash for the whole local repository.</p>
  
  <p>Is <code>git stash</code> branch-specific or for the whole repository?  If it is for the whole repository, can I pass options to it to make it branch-specific?</p>