title: Git change branch when file of same name is present
body: <p>I have in my git repo, a file named xyz. Coincidently, I also have a branch named xyz. Presently I am on master, but I want to checkout to branch xyz. The command to be used is simple</p>
  
  <pre><code>$ git checkout xyz
  </code></pre>
  
  <p>But this would checkout the file <code>xyz</code> to the present HEAD. How would I change my branch to branch <code>xyz</code>?</p>