Forums

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

unexpected size of repo

shehjar kaul January 30, 2019

I have a repositiory 'radhi-thesis' which has an unexpected folder size of 2.97 GB in the local drive and the actual files are less than 500 MB. Could anyone help me out to sort out the space problem as I am now unable to push because of size constraints. Could someone do a git gc on my repo?

1 answer

1 accepted

1 vote
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2019

Hi Shehjar, welcome to the Community!

I've run a Git gc on your remote and the size has decreased to 909.2 MB. You mentioned that on disk the actual files are less than 500 MB, however, the repo size is not only the size of the files that are part of it. Can you run the following command and let us know the output? This will show us the true size:

git count-objects -Hv

Kind regards,

Ana

shehjar kaul January 30, 2019

Thank you so much for your help!

 

Yes, it turns out that its 910 MB. My bad. I made some wrong calculations. :) 
I just want to know how did you shrink the size by 60%

Just so that I don't disturb you.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2019

All I did was to run a git gc on the remote, so all the cleaning and garbage you removed from your local actually took effect and was deleted. Normally it happens automatically after a certain amount of time, but otherwise we can do it too.

Have a good day :) 

Ana

comcsoftnew
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 31, 2019

Hi Ana,

 

Could you also run a gc on one of my repo: zip_ios. I reduced the repo size but the size shows increasing. My local only shows 175M.

 

Thanks.

 

Gary

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2019

Hi @comcsoftnew! I've run a git gc and the size decreased to 171.5 MB. 

Have a nice day :) 

Ana

shehjar kaul February 5, 2019

Hello Ana!

I actually wanted if I could do this by myself and how. Because I am not sure if I could run anything on remote by myself.
And now I have again reached the limit of 2GB in my repository. Need help from you again.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 6, 2019

Hi @shehjar kaul,

To do this locally, you can follow the instructions at Reduce repository size. To do it on the remote, you need to contact us as end users don't have access to our servers.

Hope that clarifies!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events