Azure Devops Git branch case sensitivity

Viewed 1055

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?

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.

Related