title: How to switch to another branch in Git just after clone?
body: <p>I have a repository with many brunches and I cloned it.</p>
  
  <pre><code>git clone myproject
  cd myproject
  </code></pre>
  
  <p>Now I wish to switch to branch, other than <code>master</code>.</p>
  
  <p>How should I do this?</p>
  
  <pre><code>git checkout -b mybranch
  </code></pre>
  
  <p>doesn't work, it creates new branch with given name instead.</p>