title: How to filter large files on git pull?
body: <p>There is a git repo that I wanted to clone, but it has many large files in it that I am not interested in. I looked at &quot;sparse checkout&quot; to get only one folder, but that still downloads many gigabytes so it's pointless.</p>
  <p>I tried cloning using the <code>--filter</code> option - my first attempt again downloaded the whole thing but adding <code>--no-checkout</code> downloaded much less:</p>
  <pre><code>git clone --depth=1 --no-checkout --filter=blob:limit=2m 
  </code></pre>
  <p>But there were no files in the repo (besides the <code>.git</code> folder which was now a more manageable 1GB).</p>
  <p>So how do I get the files, without the large ones? Doing <code>git checkout master</code> gets the full repo again. Adding the filter to that command gives me an &quot;unknown option&quot; error. Same for <code>git pull</code> with the filter.</p>