Today I wanted to change my default branch on azure devops, after digging into the settings I found a solution, here it is!
Step 1
Go to your project settings, you can find it at the bottom of your menu:
Step 2
Click on Repositories:
Open the branches of the project. To set a different branch as the compare branch, select the branch in the reference and click on the three dot icon:
You should get the option “Set as default branch”
That’s all, Azure Devops will select the default branch when making a pull request!
Happy Programming!