title: How do I check out a remote Git branch?
body: <p>Somebody pushed a branch called <code>test</code> with <code>git push origin test</code> to a shared repository. I can see the branch with <code>git branch -r</code>. How do I check out the remote <code>test</code> branch? I've tried:</p>
  <ul>
  <li><code>git checkout test</code>, which does nothing</li>
  <li><code>git checkout origin/test</code> gives <code>* (no branch)</code></li>
  </ul>