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)
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.