You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I cleaned my repo with the instructions from
https://rtyley.github.io/bfg-repo-cleaner/
and pushed to remote but the repos size increased
I can see that the repo size is significantly smaller locally
Should the gc be run in remote also ? How to do this ?
-Jani
Hi Jani,
I'm afraid that users cannot trigger a git gc on remote repos at the moment.
We have a feature request about this in our issue tracker:
I can trigger a git gc for your remote repo. Could you please let me know what is the remote repo's size now (from Repository settings > Repository details > look at the field Size), so I can identify it and run a git gc? (I'm asking because I see your own several repos)
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.
Hi Jani,
You are very welcome.
I ran a git gc for that repo, its size is 786.3 MB now.
Does this agree with your local repo if you run git count-objects -Hv ?
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.
hmm.. maybe I don't understand how this works but my local mirror clone repo looks like this:
ruohomaa@LAPTOP-5DOSVT93:~/codes/salesforce-compare.git$ git count-objects -Hv
count: 0
size: 0 bytes
in-pack: 14317
packs: 1
size-pack: 20.14 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
I followed the instructions here: https://rtyley.github.io/bfg-repo-cleaner/
Now the remote size is 804.11 MB. I cleaned some more. Could you run the gc again
if I run the git count-objects -Hv in salesforce-compare repo I cloned (after you ran the gc) from remote it gives this:
ruohomaa@LAPTOP-5DOSVT93:~/codes/salesforce-compare$ git count-objects -Hv
count: 0
size: 0 bytes
in-pack: 14357
packs: 1
size-pack: 20.72 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was trying to setup the source code mirroring with google "Cloud Source Repositories" and the sync resulted in an error.
Apparently others had this same problem with >700mb repositories
but it seems to work now even if the size says > 800mb on "Repository Details" page
Could you do the gc still once more because I cleaned a bit more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ruohomaa
Let me step in as Theodora is out of office this week. I would like to inform you that I ran another GC on your repository and the size has reduced to 20.9 MB.
Please let us know if there's anything else we can help you with?
Best Regards,
Norbert
Atlassian Bitbucket Cloud Support
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.
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.