How can we rename and set multiple longlived branches?

Hi everyone,

I’m currently trying to work with two long-lived branches in SonarQube and I’m a bit unclear about the correct setup.

As we follow the Git Flow standard we need to setup at least the develop and main branch. This includes renaming the standard long lived branch name. Unfortunately i can’t seem to find the correct options for my case.

My Long-lived branches pattern under the Branches section keeps getting ignored.

Any guidance, documentation links, or examples would be highly appreciated.

Thanks in advance!

Hi Marvin,

I am not sure about what you are missing.

Branch configuration can be done in Project Settings/Branches and Pull Requests

You can only rename the branch, that is currently the main branch. But it is possible to temporarily make another branch the main branch, rename it and switch the main branch back.

The configuration setting for long-lived branches is only applied for newly created branches. So if you want to update this setting on existing branches, you can also do this in Project Settings/Branches and Pull Requests. Just click on the slider in the column keep when inactive.

Did this answer your questions?

Regards, Wiebke