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.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events