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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.