Hi,
I have reduced the size of my repo and push. Please help me run git gc on my remote repo.
Thanks.
Hi Bahiyah,
I've ran gc against your two largest repositories (1.5GB/697MB) but they did not reduce in size.
You will need to locate large files in your repositories and reduce the repository size by removing those large files or converting them to GIT LFS:
Here is a command to show your files (sorted by largest at the top):
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| awk '/^blob/ {print substr($0,6)}' \
| sort -r --numeric-sort --key=2 \
| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
Please note that any cleanup operations create garbage/dangling commits, which will inflate the size. We need to run a server-side gc from our side to complete the process, so please let me know when you're ready to do so.
Cheers!
- Ben (Bitbucket Cloud Support)
Hi Ben,
Thanks for the command. Will do that first and get back to you.
Cheers!
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.