Repo too big

blumix March 22, 2020

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.

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events