title: How to use git clone to set up the repo without downloading files?
body: <p>To manage yarn workspaces I am copying the pertinent subfolders into temporary folders and push them into their respective git repositories</p>
  
  <p>To setup these repositories I am using <code>git clone</code>, which downloads everything and sets up the origin and remote configuration (and then copy files)</p>
  
  <p>Can I skip the downloading of the repo folders?</p>
  
  <p>Would this work? </p>
  
  <pre><code>git clone --filter=blob:none --no-checkout &lt;repo&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>The usual way would be (as said by @edd34 and @pallgeuer below) with <code>git init</code> and <code>remote add origin</code>, but with the <code>git clone</code> above is only one line</p>
  
  <p>-> what are the differences? What is achieved with this approach? And if incorrect, is there any way to get the same (provided a remote already exists) with <code>git clone</code>?</p>