Forums

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

How often is git cleanup run on server?

arides April 7, 2025

Based on the recent announcement of 1GB repository size, I have updated my git history in one of my projects and reduced its size down to ~50mb. After several days. the repository still shows the original 800mb size.

My question: How often is the automatic git cleanup run, and could it be possibly triggered manually?


Technical Details:

This is what I did to calculate the new repo size (based on This existing question about the same topic):

I did a clean checkout and ran the following script:

$git count-objects -Hv 
count: 0
size: 0 bytes
in-pack: 10153
packs: 1
size-pack: 50.98 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

 

 

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 8, 2025

Hey @arides ,

thank you for reaching out to the Community!

The GC is automatically executed from time to time based on some internal heuristics, such as the number of loose objects. However, we from support can help to expedite GC by manually triggering it from our end.

I can see you have access to multiple workspaces. In order for us to run the GC in the correct repo, could you share the masked workspace name and repo name with us?

For example, for a workspace named my_workspace and a repository named my_repo, you could share m**w***s***e/m**r*p*.

We'll then be able to trigger the manual GC for your repo.

Thank you, @arides !

Patrik S

arides April 10, 2025

Hi @Patrik S!

that is great news!

workspace: b****x
repository: /m******-t***s

Thank you!

Arides

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2025

Hey @arides ,

Thanks for sharing the repo name.

I've manually triggered a Garbage Collection on your repository and managed to reduce its size from 800MB back to ~50MB !

Now that GC is completed, I would highly recommend you having everyone on your team removing their old copies of the repository and doing a fresh clone of it. Since the old clones have a dirty history, it's better to delete them, so you don't risk pushing the dangling objects back into your cleaned repository, which would increase its size again.

Would you please confirm if everything looks good on your end now ?

Let me know if you have any other questions.

Thank you, @arides !

Patrik S

 

arides April 14, 2025

Thank you very much, looks perfect! Good point about the old copies, I'll get right to it!

Have a nice day.

Jakub

Like Patrik S likes this

Suggest an answer

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

Atlassian Community Events