title: git checkout origin/master doesn't work?
body: <p>I type in <code>git checkout origin/master</code> at the command line and at first am giving the following prompt:</p>
  
  <pre><code>Deletion of directory 'dirname1/dirname2' failed. Should I try again? (y/n)
  </code></pre>
  
  <p>It fails pretty much every time I try so I wind up hitting n.  Then I get this:</p>
  
  <pre><code>You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by performing another checkout.
  
  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -b with the checkout command again. Example:
  
    git checkout -b new_branch_name
  
  HEAD is now at c2850cd... - change description
  </code></pre>
  
  <p>I do <code>git branch</code> after that and here's what I see:</p>
  
  <pre><code>* (no branch)
    remote/branchname
    master
  </code></pre>
  
  <p>Why is it doing that?  How do I make a commit to origin/master in light of this?</p>