Forums

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

My repo size crossed 1.6 GB, how to reduce that

hazarathboreddy_300016342 February 11, 2020

I was included some of the data files in one of the branch, after few days i have removed the datafiles which is having more size, but my repo size is not came down

how can i reduce the repo size

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2020

Hello @hazarathboreddy_300016342 ,

Here's a useful article on how to reduce repository size. Simply speaking, when you add a big file and later remove it by just making another commit, that file still resides in the repository history, so repository remains huge. What you need to do in this case is rewrite history to remove big file entirely (as if it has never been added to the repo). History rewrite is quite powerful operation, and you should be careful when using it.

Note that after you reduce the size and push the new, smaller version of your repository to Bitbucket, it might not reflect the size change immediately. This is due to the fact that Git garbage collection isn't triggered every time as it is an expensive operation. So you can either keep working on the repository, and GC will eventually trigger on some push, or open a support case with us asking to trigger GC manually.

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events