Forums

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

Run gc

Kristoff.Fluyt
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!
January 29, 2024

Hi,

 

Is it possible to run gc manually on '<repo_name_removed>'?  

 

I deleted some big files with BFG, and the size locally after deleting the big files seems to be  1.31 MiB (using git count-objects -vH in the .git folder), but on bitbucket the size still seems to look like 83.71 MB.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2024

Hi Kristoff and welcome to the community!

I ran a git gc for this repo. Its size has been reduced, but only to 68.7 MB.

Could you please try the following:

1. Take a mirror clone of the repo with the command (this will clone all branches from the remote repo)

git clone --mirror <repo_url>

2. Navigate to the directory of the mirror clone

3. Run the command git count-objects -vH there

What output do you get from this command?

I would like to understand if the difference in size is because of branches that are not present in your local clone or if there is another reason for this difference.

Just a heads up, I removed the repo name from your post to protect your privacy.

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events