Cannot change default branch

Jozef Vandenmooter June 6, 2019

Does anyone know how to change the default branch a feature branch is created from when clicking the Create Branch button in a Jira Issue?

All feature branches should be created off of develop (as per GitFlow "standard"), but the dialog defaults to master. This is in Jira 7.13 and Bitbucket 6.2

Capture.PNG

I have the default Development branch set to develop in the repo's settings:

Capture.PNG

I also tested this on the latest versions of Bitbucket Server DC (6.3.1) and Jira Server (8.2.1) but it still defaults to master:

Capture.PNG

We want to prevent developers from accidentally creating feature branches off of the master branch.

 

 

1 answer

1 vote
Jozef Vandenmooter June 19, 2019

An acceptable workaround is to set the Default branch to develop in the Repository's settings.

The developer just has to be aware that a default clone points to the develop instead of the master branch.

Capture.PNG

Suggest an answer

Log in or Sign up to answer