Hello,
I have done a repository cleanup by running the following commands:
git reflog expire --expire=now --all
git gc --prune=now --aggressive
git push origin --force --all
git push origin --force --tags
After running the command "git count-objects -vH", the size shown is:
count: 0
size: 0 bytes
in-pack: 18614
packs: 1
size-pack: 642.19 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
Locally, the size is down to around 640MB. However, the repository details are not updating (it still shows 1.1GB).
Does it mean that "git gc" needs to be run on the Bitbucket side?
Hi and welcome to the community!
If you rewrite history in the repo to remove files and you push that to Bitbucket, then yes, a git gc needs to run on the Bitbucket repo. There is a git gc that runs automatically on every push, but with different parameters depending on many different conditions.
I triggered a git gc manually for your repo (the one with a size of 1.1 GB) that should optimize it better, and the repo's size has been reduced.
Does it look ok now on your end?
Kind regards,
Theodora
The repo size has already been reduced.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome.
Please feel free to reach out if you ever need anything else!
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.