title: How do you fetch a remote branch without "checking it out"
body: <p>I am working on a branch "branch-A" and using the command <code>git branch</code> I can see that its the only branch locally.</p>
  
  <p>If I use <code>git branch -a</code> I can see the remote copy of "remotes/origin/branch-B"</p>
  
  <p>What I want to do is bring branch-B locally, but I don't want to actually check it out... I mean I could do that and then checkout my other branch to go back, but its slightly more painful since I am doing this to lots of repos.</p>
  
  <p>I was thinking some sort of fetch? but I can't figure out how to phrase the command. Is it possible?</p>
  
  <p>So I have:</p>
  
  <pre><code>user@pc&gt; git branch
  * branch-A
    master
  </code></pre>
  
  <p>and</p>
  
  <pre><code>user@pc&gt; git branch -a
  * branch-A
    remotes/origin/branch-B
    remotes/origin/branch-A
    remotes/origin/master
  </code></pre>
  
  <p>I want to be able to get:</p>
  
  <pre><code>user@pc&gt; git branch
  * branch-A
    branch-B
    master
  </code></pre>