Objects folder in .git is extremely large for my small project
问题 My git push was very slow so I investigated and found out that the folder .git/objects takes up ~450MB. 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 git add -A and tried to commit again, but it takes a very long time and seems to upload a lot. It takes forever at: writing objects: 97% (35/36), 210.17 MiB | 49.00 KiB/s How do I fix my git repository? 回答1: Commits are "forever" Remember