Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Devops Git branch case sensitivity

When I view my branches through the Azure Devops portal I notice that I have the following;

feature/feature1  
Feature/feature2

Locally through my git client (Fork) it looks correct;

feature/feature1  
       /feature2

How do I correct this on Azure devops and is there a way I can prevent this from occurring in the future?

like image 913
gumby Avatar asked Oct 17 '25 06:10

gumby


1 Answers

There is a setting called "Case enforcement" (Project Settings -> Repositories -> Policies) that at least prevents case-sensitivity conflicts:

enter image description here

I doubt you can enforce a lowercase branch name with Azure DevOps right now - at least from the UI. However, you might be able to do this using the tf command line.

To correct your branch name, just create another branch based on your initial branch (ensure you have commited all your local changes) and then delete the initial branch.

like image 169
Martin Brandl Avatar answered Oct 18 '25 21:10

Martin Brandl