title: How do I shallow clone a repo on a specific branch?
body: <p>How do I shallow clone a git repository, so that my clone contains only 1 history item, and starts on a specific branch?</p>
  
  <p>I know how to do a shallow clone:</p>
  
  <pre><code>git clone --depth 1 https://path/to/myrepo.git
  </code></pre>
  
  <p>but not start the clone on a specific branch.</p>