I am getting some warnings about a repo being over 2GB.
The history did contain some larger files from accidental commits but I used git filter-repo and was able to remove those, however the size has not changed on the server itself even though I can see the files themselves no longer exist in the history.
Hello @Guidance IT and welcome to the Community!
After doing a history rewrite to remove some files, like using git filter-branch, it's usually necessary to run a garbage collection (GC) on the server side to remove any dangling objects that were left behind by that operation. As you have multiple workspace and repositories under the account you used to post this question, in order for us to trigger the GC for you, could you share the masked workspace and repository name of the affected repository?
For example, the masked version of the my_workspace/my_repo could be m*_*******ce/m**o. This way we can identify the correct repository to run the GC.
Thank you, @Guidance IT !
Patrik S
Hi @Patrik S ,
Apologies accidentally posted this as an answer!
Thanks for this, please go ahead and run gc on the server. The repository is g*-**to/o***.******i.
Thanks again.
Ollie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Guidance IT ,
The GC was completed successfully and the size of the repository was reduced to 993MB !
Now that GC is completed, I would highly recommend you have everyone on your team remove their old copies of the repository and do a fresh clone of it. Since the old clones have a dirty history, it's better to delete them, so you don't risk pushing the dangling objects back into your cleaned repository, which would increase its size again.
Thank you, @Guidance IT !
Patrik S
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 @Patrik S ,
Thanks for this, please go ahead and run gc on the server. The repository is g*-**to/o***.******i.
Thanks again.
Ollie
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.