Our (small) team works on Bitbucket for VC. At the time of writing this, our repo has 1550 branches, and we have many (~150) "active" branches. My question is about these "active" branches.
The number of "active" branches has been creeping upward over the last few years. In reality, we never have more than ~5 branches being actively worked on at any given time. Our branches are nearly always merged back into master after a PR review, or rejected from Bitbucket's web PR interface.
I understand git
's concept of "active", but I can't find any info in Bitbucket's docs that explain to me:
master
?I'd appreciate answers to these questions!
The last point about CI / Bamboo is what's really driving this. We get a lot of very crytpic error and failure messages from Bamboo, and they sometimes reference "active branches", but don't include any actionable info (I don't have any currently available to reference, sorry! 😖)
I've browsed Bitbucket's docs / help pages (like https://confluence.atlassian.com/bitbucket/manage-unmerged-branches-389778602.html) and SO, but haven't been able to find (or possibly understand) what Bitbucket considers an "active" branch, and if there's any impact from many active branches (and, if so, what impact).
Branches serve as an abstraction for the edit/stage/commit process. You can think of them as a way to request a brand new working directory, staging area, and project history. New commits are recorded in the history for the current branch, which results in a fork in the history of the project.
In Bitbucket go to your project, click branches , click on the three points and click delete multiple.
On Bitbucket, access your repository and click the branch link. The branch should now be created and active. You can confirm which branch you are working on by looking at the branch button.
It looks like in Bitbucket, the active branches are all branches ahead of the master
branch.
That's just it, it has nothing to do with the date of the last commit on the branch.
It is Bitbucket-specific terminology used for filtering branches:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With