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,300,679
Community Members
 
Community Events
165
Community Groups

Repo size note reduced after large file history delete using BFG

Hello,

I used BFG to remove a large file from my repo history. In other questions on the forum I read that the gc operation takes a bit of time to be executed. It has been over a day and nothing has happened yet on the remote repo. I am over the 4GB size limit and need to push to keep working on my project (deadlines approaching). I turned on the '
Delete dangling commits when over size limit' option in labs. Could you please have a look at my repo and do a manual start of the gc operation please?

1 answer

1 accepted

0 votes
Answer accepted

Hi @KULarmin,

I checked the repositories you own and have access to, I could find one that is over the limit so I went ahead and triggered a manual git gc for it. Its size now is 1.2 GB.

Does this agree with the size of your local repo if you run git count-objects -Hv, or do you have a local repo of a smaller size? If your local repo has a smaller size after you ran BFG, you can push your changes and let me know so I can trigger another git gc.

If the feature Delete dangling commits when over size limit is enabled for your account and the repo is over the size limit, a git gc will be triggered automatically if you undo the last commit and push that, see our documentation here:

The git gc will not get triggered if you push anything else, like history rewrite.

If you have any questions, please feel free to let me know.

Kind regards,
Theodora

Hi Theodora,

thank you very much for your swift help and explanations. At the moment I do only have a local mirror repo (git clone --mirror git://example.com/some-big-repo.git)on which I did the history rewrite.

That repo is 923.83 MB large according to git count-objects -Hv. So slightly smaller than the remote one. That is okay for me and I leave it at that.

Kind regards,
Armin

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,262 views 2 9
Read article

Community Events

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

Events near you