Objects folder in .git is extremely large for my small project
<p>My <code>git push</code> was very slow so I investigated and found out that the folder <code>.git/objects</code> takes up ~450MB.</p>

<p>The complete project is only ~6MB, but I've added archives which were 140MB large. As github doesn't allow files that large, I've removed them, then did <code>git add -A</code> and tried to commit again, but it takes a very long time and seems to upload a lot.</p>

<p>It takes forever at:</p>

<pre><code>writing objects:  97% (35/36), 210.17 MiB | 49.00 KiB/s 
</code></pre>

<p>How do I fix my git repository? </p>