I realized my .git folder was taking up 1.3GB today and looked through the contents to see what the problem was. I found a .pack file taking up almost all of the space and searched around online, eventually running
git gc --aggressive
.
This fixed the .pack files, which are now much smaller in the byte or kb range. However, I now have an object file that's 1.3GB.
I can cat the contents of the object and I know what's in it but I can't find that file in my repo history. I don't actually remember committing it but I think php storm may have added it to the repo when I put it in my project directory.
How can I remove this large object file without damaging the repo?
Edit: I checked out the duplicate answer and ran both shell and perl scripts in this link: Which commit has this blob? to try to find the commit but both returned nothing and no errors either.
Does this mean this object really references no commits?