Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need GC on remote

adrianklimczak August 12, 2021

Please run garbage collection on our Survival Defender repository.

We have trimmed old history to reduce the repository size and did
$ git push --all --force

Size of the repository on BitBucket is 1.89 GB, while the actual size is much smaller:
$ git count-objects -v
count: 0
size: 0
in-pack: 47156
packs: 1
size-pack: 990471
prune-packable: 0
garbage: 0
size-garbage: 0

2 answers

1 accepted

1 vote
Answer accepted
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 12, 2021

Hi, @adrianklimczak

Thank you for reaching out to Atlassian Community!

I ran the GC against your repository and managed to reduce its size.

To give you some context around the git GC process, Bitbucket triggers a garbage collection on the repository after each push, however aggressive GC is triggered by GIT once the unreachable/dangling objects become older than 30 days.

For this reason, there is no need for us to trigger a manual GC for your repository. However, we are happy to run it for you if you feel there is a need. 

We already have a feature request to allow users to mark repositories for git GC, as you can check here:

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it here.

Feel free to share any additional questions or concerns regarding this case.

Kind regards,
Caroline

Gabriel Hillesheim da Silva August 24, 2021

Hy, I ran BFG over my repo, push all the files I've cloned with '--mirror', when I type 

"git count-objects -v"  I get this 

count: 3
size: 3
in-pack: 1607
packs: 1
size-pack: 68472
prune-packable: 0
garbage: 0
size-garbage: 0

But in BitBucket size information still warning me about the size.

'<Repo name>' is repo name

Can you take a look?

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2021

You'll need to talk to your administrators about this, we have less access to, or knowledge of, that system than you do.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events