The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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)

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events