Bitbucket has developed a feature that will help you maintain repo cleanliness without the tedious task of closing each branch from the command line.
Now when a pull request is sent across branches, a checkbox will appear giving you the option to close the source branch once the pull request gets accepted. Bitbucket will automatically close the source branch for you, tidying up your team’s repository.
Closing branches after pull requests (until now) has been a manual process that usually never gets done. Save your team time,
Learn more about pull requests and start using this feature today.