title: Does git fetch operate on ALL branches or just the current branch?
body: <p>I have a remote repo on github, and on my local machine I have a few different branches (so I can switch between the branches using "<code>git checkout master</code>", "<code>git checkout branch2</code>", etc.).<br>
  When I run the "<code>git fetch</code>" command, I am never sure if it's fetching updates for ALL of those branches or ONLY the branch I'm currently working in (the one I most recently "checkout"'ed).<br>
  In other words, if I'm working in <code>branch2</code> and want merge in changes someone else made to <code>branch1</code>, do I need to do:</p>
  
  <pre><code>git checkout branch1
  git fetch
  git checkout branch2
  git merge branch1
  </code></pre>
  
  <p>Or can I just do this:</p>
  
  <pre><code>git fetch
  git merge branch1
  </code></pre>