GIt Repo exceeds 4 GB

Prachi Jain Chaudhary January 14, 2022

My repository size becomes over the limit of 4gb. So I reset the one branch to commit before the large commit and gave git push --force.
I still have some branch with same large files.
Do I need to do same with all branches ?

Will deleting old branches will effect ?

 

1 answer

0 votes
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2022

Hi, @Prachi Jain Chaudhary, thank you for reaching out to Atlassian Community.

I checked the repositories that your Bitbucket Cloud account has access to and couldn’t find any repo showing 4 GB, could you please confirm if after you reset this branch, the repository size decreased? 

If you need to remove files from the history of all branches, I would recommend running BFG on a mirror clone (as mentioned here: https://rtyley.github.io/bfg-repo-cleaner/), this way you will not have to repeat the process for every branch. 

If you plan to use BFG to reduce the repo's size further, please feel free to let me know after you push your changes and I can run a git GC (I just would need to know the repository name, so you could share the last 3 letters of this repo here). 

Let me know if you have any questions. 

Kind regards, 
Caroline 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events