Hello,
I tried to reduce the size of my repository (m*w***g***) by removing some large files from the history (using 'git filter-branch'), but it didn't reduce on the server.
Looking at other messages from the community, it looks like a 'git gc' needs to be run on Bitbucket side.
Can someone do that?
Thanks in advance,
Rémi
@raubel welcome to the Atlassian community
I have escalated to Atlassian so they can run garbage collection.
Hi @raubel
I have executed a garbage collection on the server-side to clear out the dangling commits created by your cleanup operations. This has reduced the size down from 1900MB to 900MB.
Your workspace is currently sitting at 1.0GB, so I'd recommend performing further maintenance by checking for large files and removing them - the below command will print all large files in your repo:
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
Once complete, please let me know and I'll perform a subsequent gc.
Cheers!
- Ben (Bitbucket Cloud Support)
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.
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.