I cleaned up my repository
now when I do git clone with --mirror flag the total size of the clone folder is only 48.1 MB.
But when I go to Repository settings it shows repository size as 1.5 GB
Whats going on here?
Any help is highly appreciated.
Regards,
K
Hi Karmendra,
A git clone with --mirror option creates a "bare" repository that does not have a work area.
It is, in fact, more like a read-only clone that you can then pull from -- and get a working repository.
Since the mirrored clone is different from its upstream repository in its structure and layout, it will differ in size.
More info here: when doing a git clone mirror where are the actual files.
Regards,
Kanwar | Atlassian Support
Thanks a lot for you response, highly appreciate it.
Now I tried a normal git clone, repository size is only 96.8 MB, which still different from 1.5 GB shown in Repository Details. I read somewhere that bitbucket support should run git gc from back-end after a clean up is done. I did a clean up approximately a month ago (I still see the repository size warning btw).
Following images show my new clone and it size on disk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @karmendra! I've sent you a response at https://community.atlassian.com/t5/Bitbucket-questions/Repository-Size-is-showing-incorrect-value-needs-git-gc/qaq-p/764053.
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.