title: How to reduce the size of a git repository using bfg
body: <p>I have a git repository that weighs around 5g. The .git directory weighs 4.5G itself.</p>
  <p>My goal is to remove all big files from this history in order to don't have 5G to download when doing a clone.</p>
  <p>To do that I wanted to use the BFG open-source tool.</p>
  <p>I used these commands :</p>
  <pre><code>java -jar bfg-1.14.0.jar --strip-blobs-bigger-than 1M my-repo/.git 
  git reflog expire --expire=now --all &amp;&amp; git gc --prune=now --aggressive
  git push --force
  </code></pre>
  <p>My local .git directory go down from 4.5GB to 0.8GB. I checked the file deleted according to the BFG logs and it was ok to me.
  The problem is that despite the push --force, when I clone the directory again it's still downloading ~ 4.5GB and this is what I want to avoid. How should I do ?</p>