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.
Hi,
I have removed some large files from my repository.
Could somebody run a gc on it to actually free space?
Thanks in advance.
Rémi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(I can see that I didn't use your nickname in my previous message, sorry for that)
I'm still stuck with my repository being greater that 1GB.
Could you please execute a git gc for me?
Thank you for your help,
Rémi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @raubel
My sincere apologies for the delay - for some reason I was not notified about your replies. In future, if you are not receiving a response - please feel free to raise a seperate community post referencing your original post.
I've executed a gc and now your workspace size is 600MB, so it's within the 1GB limit.
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.