title: How to use git sparse-checkout in 2.27+
body: <p>I was trying to reproduce the few tutorial steps from:</p>
  
  <p><a href="https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout" rel="noreferrer">https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout</a></p>
  
  <p>Which was made for git 2.25, but now in 2.27, nothing happen at all when running:</p>
  
  <pre><code>$ git sparse-checkout set client/android
  </code></pre>
  
  <p>I can't find a way to make it works.</p>
  
  <p>Here is a MWE:</p>
  
  <pre><code>$ git clone --no-checkout https://github.com/derrickstolee/sparse-checkout-example
  Cloning into 'sparse-checkout-example'...
  
  $ cd sparse-checkout-example/
  
  $ git sparse-checkout init --cone
  </code></pre>
  
  <p>Using git 2.25, I obtain a non empty directory:</p>
  
  <pre><code>$ ls -a
  .  .. bootstrap.sh LICENSE.md  README.md .git
  </code></pre>
  
  <p>Using git 2.27, I obtain an empty directory:</p>
  
  <pre><code>$ ls -a
  .  .. .git
  </code></pre>