Forums

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

Repo Cleanup

DevelopmentISL October 25, 2018

for some reason my GIT repos are absolutely massive where the physical files on my PC are no where near as large.

Can you please clean up all my repos please ? (or tell me how to do it)

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2018

Hi, welcome to the Community :)

Checking the size of individual files in your computer will not give you the real size of your repository. To check the size, I'd recommend you to open your terminal, navigate to the location of your repo and run:

git count-objects -Hv

Then we'll need to know to what are you comparing them to; are you comparing them to your remote repo hosted somewhere else (Bitbucket Cloud, Github, etc)? If the size you see in your terminal differs from the size shown online, then something should be done in the serves. Usually, a garbage collection is run automatically to clean up old references and stuff that is not needed in the remote. If the automatic gc doesn't happen, then we can run it manually from our side (if the repo is hosted on Bitbucket Cloud).

Let us know how it goes!

Ana

DevelopmentISL October 25, 2018

ive done what you asked and i have the following 

count: 34

size: 156.00 KiB

in-pack: 13386

packs: 2

size-pack: 1.67 GiB

prune-packable: 0

garbage: 0

size-garbage: 0 bytes

DevelopmentISL October 31, 2018

Hello ? can you please let me know what i can do ?

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

Hi! So looks like the size of your repo is 1.67 GB. In that case you'll need to reduce it following the steps at Reduce repository size. Once you've followed all the steps there and force pushed it to the remote, it will update accordingly. 

Hope those instructions help you! Let us know if you need any further assistance and we'll be glad to help :) 

Kind regards,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events