title: Pulling code from remote git branch, when it does not exist locally
body: <p>When branch <code>B</code> does not exist locally, but is on the remote repo, </p>
  
  <pre><code>git branch
   * A
  
  git branch -a
   * A
    remotes/origin/B
  </code></pre>
  
  <p>How can i pull <code>B</code> to my local repo? Should i <code>git checkout B</code> first? Should i <code>pull</code>, while on branch <code>A</code>?</p>
  
  <p>Please help me clarify</p>