Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,482
Community Members
 
Community Events
168
Community Groups

GIt Repo exceeds 4 GB

Edited

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 Jan 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

Atlassian Community Events