Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot change default branch

Jozef Vandenmooter
Contributor
June 6, 2019 edited

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
Contributor
June 19, 2019 edited

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
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events