I'm running Git on Ubuntu and one of my repos is over 2 GB. I stupidly copied a large directory to my repo and (again, stupidly) pushed it to my repository. Now, over time, my repo has ballooned to over 2 GB and I can't push to it anymore.
I can't seem to fix this; I've run BFG, tried pruning the repo, etc. Nothing seems to work.
Can anyone offer a suggestion on how to do this without having to blast the repo?
https://bitbucket.org/fmiteam4daw/chest_xrays/src/gidea_side/ this is the repo.
Thank you.
Hello @blumix,
Welcome to the Community.
I tried to trigger GC for the repository on question, but it is indeed still large, so the large files are still in its history.
Here's an article on how to reduce your repository size. There's a linked guide on how to use BFG for moving files into Git LFS – you can follow it but instead of pushing the files into LFS just delete them.
Hope this helps.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.