title: git pull remote master in detached head
body: <p>This has been bothering me about git.  I have a repository with multiple remotes, and I need to apply hotfixes to the remotes' master branches.  So, I try doing:</p>
  
  <pre><code>git fetch remote1 master
  git checkout remote1/master
  </code></pre>
  
  <p>But, I always end up in a detached head state.  What is the correct way to checkout the master of a remote and apply a patch?</p>