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.
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.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events