Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce Repo size

subhojit1480 December 5, 2023

The size of the repo showing is 3.5 GB.

Could you delete large files from old commit history so size will be decreased?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2023

G'day!

As per our policies, we are unable to modify customer data in any way - so you will need to resolve this issue by diagnosing the large files and making steps toward removing them or converting them to GIT LFS.

Here's an example command to view your largest files (Linux/Mac):

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

 We then have articles that you can follow to manage large files in your repository:

Please let me know once you have made the necessary changes to your repository and when it is ready for garbage collection, we can execute this for you on the server end to finalise the size reduction.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events