I have a clone of the project from another team then I run it a few times. I checked, the size of this project increased significantly. From 2MB as when the new clone until now is 190MB.
I checked and found that this increase was caused by the .git/objects
folder.
I tried something like git gc --prune=now --aggressive
but nothing changed.
I can delete the project and clone again but I think there is a way for the project to keep the same size as when I first cloned. So is there a way to refresh my project to the way it was when I cloned?
===================================================================
EDIT 2: I follow the steps in Remove large .pack file created by git but the pack file (.git/objects/xxxxxxxxx.pack) keeps 200 MB. It's ridiculous but what I want is just to make my project as small as when I first cloned. But it seems that git is not capable of providing this.
My workaround was to delete all files and try to clone the project again.