Hi dev support.
I have wrong commit that push around 1GB to remote repo and my repo size exceed 4GB limit. I try to fix the commit locally as suport center told but can not force push so I decide to deleted the remote branch contain the oversize commit but nothing change.
Then I try to create branch with same name in remote repo but it seem that repo size not reduce.
Now I can not do anything to fix the problem.
Can anyone help me please.
Hi @Le Ni and welcome to the community!
Yes, I can assist you with this. I can see that your Bitbucket Cloud account has access to quite a few workspaces and repositories. Could you please let me know the last two letters of the repo and the last two letters of the workspace this repo belongs to, so I can identify the one you are talking about, and run a git gc for it?
Kind regards,
Theodora
@Theodora Boudale Thank you. Because I join so many workspace, the last 4 letters of my workspace is saco and the last 4 letters of my repo is main
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Le Ni,
Thank you for the info. I ran a git gc for the repository and its size has been reduced. It's under the 4 GB limit now, but still quite large.
Is the large commit still part of the repo's history? If you go to the repo on Bitbucket Cloud website, and then open the Commits page of the repo, do you see the large commit listed there?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Those large file is start point of many commits but nearly commits does not has any big size file. I dont know how to reduce the repo size now. Today I add a hundreds MB commits and you did gc but the size not reduce same size as my mistaken commit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We do not use these really large file anymore, deleted on our repo but it still living in bitbucket in many branch and I do not know how to remove all of it too
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Le Ni,
Committing file deletions is not going to remove these files from the repo's history. This is only possible if you rewrite history in the repo, with a tool like BFG.
I made a detailed post about this in a different question:
It's quite long, but I would suggest reading all of it to better understand what you need to take into account. If you have any questions about the content, please feel free to let me know.
A few things that I mention in that post as well:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Theodora Boudale I already try BFG but as you said, the repo size go up and need another git gc. I'll folk this directory to my another workspace today and do BFG one more time. After everything pushed, I'll ask for your help . Thank you again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Theodora Boudale I did folk my old repo to another repo, then do BFG tutorial and already push. Can you help me check this repo and run git gc on it.
Workspace last 4 character is saco and repo last characters is main_new
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Le Ni,
I ran a git gc on both repositories:
Does only the second repo (main_new) have the changes with BFG?
Please feel free to let me know how you would like us to proceed now:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome @Le Ni. If you need anything further, please feel free to reach out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Theodora Boudale
Hi, I saw support help git gc on some project. I dont know how long does it take for a support member to see my disscusstion so I tag you here. Sorry for that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.