So I have this huge bitbucket repository with so many branches, each with tens of commits some of which are really small. Now that the entire thing works perfectly, I want a clean repo with only the final commits and required branches. How do I achieve a 'repository clean-up' where I can remove the unnecessary branches and the commits and have a final clean repo?
Please help me out.