Forums

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

Repository size not updating

Chong Ka Hou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2025

Hello,

I have done a repository cleanup by running the following commands:

git reflog expire --expire=now --all
git gc --prune=now --aggressive
git push origin --force --all
git push origin --force --tags

After running the command "git count-objects -vH", the size shown is:

count: 0
size: 0 bytes
in-pack: 18614
packs: 1
size-pack: 642.19 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

Locally, the size is down to around 640MB. However, the repository details are not updating (it still shows 1.1GB).

Does it mean that "git gc" needs to be run on the Bitbucket side?

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2025

Hi and welcome to the community!

If you rewrite history in the repo to remove files and you push that to Bitbucket, then yes, a git gc needs to run on the Bitbucket repo. There is a git gc that runs automatically on every push, but with different parameters depending on many different conditions.

I triggered a git gc manually for your repo (the one with a size of 1.1 GB) that should optimize it better, and the repo's size has been reduced.

Does it look ok now on your end?

Kind regards,
Theodora

Chong Ka Hou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2025

The repo size has already been reduced.

Thank you.

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 18, 2025

You are very welcome.

Please feel free to reach out if you ever need anything else!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events