Hi there!
I've seen several posts requesting this, so this seems to be the way to go: I think I need "git gc" to be run on my repo. I've been doing some cleanup to try and get its size under 1GB, yet the repo size stayed stuck at 2.19GB.
Let me know if you need any info to identify the repo.
Thank you!
Hello,
Welcome to the community!
I've run garbage collection on the repository, and the repository size has remains the same.
You can check by running the following command on the local repository:
git count-objects -vH
The "size-pack" will show the local repository size.
Our documentation has additional information on how you can reduce the repository size -Maintain a Git repository
Cheers,
Phil
Hi Phil,
Thank you for your reply and for running the command!
Looking at that doc, I didn't realize I need to remove the files from the Git history after cleaning them up form the repo. I'll look into doing that then!
Thanks,
Emeric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Emeric,
Absolutely! Feel free to let me know if you need to run garbage collection again after removing the files from Git history.
Cheers,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Emeric,
Great work! I've run garbage collection again and the repository size has reduced to 1.5 GB.
Cheers,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot! Looks like I need to do some more cleanup then (I'm trying to get the repo under 1GB), so I might have to ask you for another GC in a bit, if that's okay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Emeric,
Not a problem! Just let me know.
This knowledge base article may be helpful in identifying potential large files in the repository - How To: Check your repository's size and identify large files
Cheers,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil,
We did some more cleanup, I think the repo size should be good now. Could you please run GC once more? Hoping it'll be the last time. :)
Thanks,
Emeric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Emeric,
Awesome! I've run garbage collection again and the remote repository size is below 1 GB at 730.6 MB. :D
Cheers,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.