Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Repo size warning still get displayed after cleanup & push with BFG

Hi,

I have a large repo size with almost 2.02 GB, so I have duplicated it to another temp repo to test the BFG cleaner on it before using the BFG on the original repo, after following the BFG documentation, and ran all the needed commands, then pushing the decreased sized repo(415MB) to the remote repo, the repo size became 2.15 GB.

So, please run a git gc on the remote to clean up the server.  Thank you!

1 answer

0 votes

Hi @Mahmoud Jorban,

I can see in our system that your Bitbucket Cloud account has access to 2 repos with a size of around 2 GB. I believe that the temp repo is the one whose name has _temp in the end? I ran a git gc for this repo, but its size remains 2.1 GB.

Could you please let me know:

1. What is the output of the command git count-objects -Hv in your local mirror clone where you ran BFG?

2. Did you run the following command in that mirror clone prior after you executed BFG and prior to pushing?

git reflog expire --expire=now --all && git gc --prune=now --aggressive

3. Could you please confirm if you pushed your changes to the Bitbucket repo whose name ends in _temp?

Kind regards,
Theodora

Hi @Theodora Boudale ,

Regarding the first point, after running the command, I get the following:

count: 0
size: 0 bytes
in-pack: 324456
packs: 1
size-pack: 380.59 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

And regarding the second point, yes, I ran that command, and I followed the same instructions in the BFG official doc page here, under the usage section.

And regarding the third point, yes, I pushed my changes to the repo whose name ends with _temp.

Hi @Mahmoud Jorban,

Thank you for the info. I ran another git gc for the repo, but its size remains 2.1 GB.

I went ahead and created a support ticket for you so we can investigate this further, using the email of your community account.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

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

Kind regards,
Theodora

Like Mahmoud Jorban likes this

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,487 views 4 8
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