Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Bitbucket, what is an "active" branch, what is the impact of many "active" branches?

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:

  • what is an "active" branch is in Bitbucket's context/paradigm?
  • why is it significant to Bitbucket to distinguish between "active" and other branches?
  • is a feature branch is still "active" if it is merged into master?
  • what impact, if any, is there on our repo / CI server (we use Bamboo) from having many "active" branches at once?

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).

like image 947
SterlingVix Avatar asked Aug 26 '19 17:08

SterlingVix


People also ask

What is the purpose of branches in git?

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.

How do I delete multiple branches in Bitbucket?

In Bitbucket go to your project, click branches , click on the three points and click delete multiple.

How do you check from which branch a branch is created Bitbucket?

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.


1 Answers

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:

enter image description here

like image 112
simhumileco Avatar answered Oct 29 '22 22:10

simhumileco