Case-sensitivity in Bitbucket server
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
Problem 1: Branches created on clients running on a mix of case sensitive and case insensitive operating systems may result in branch names with different letter case.
A branch is created on Bitbucket Server called
feature/_. When this branch is checked out from a Git for Windows client it is recognized as
When this same branch is pushed from a git client on a case insensitive operating system (such as Windows or macOS) to Bitbucket Server, it is treated as a new branch to the camel-case structure.
Bitbucket Server now shows 2 branches:
Feature/_ . Only
feature/_ can be checked out.
Problem 2: Creation of branches with same name but different case is allowed in Bitbucket server.
Branch names Feature1, feature1 can be created and are considered different.
Bitbucket completely relies on Git and Git is designed to be case-sensitive. Hence Bitbucket server is case-sensitive. This means that a name in lowercase does not equal a name in camel-case.
Unfortunately, We do not have a solution yet as there isn't way in Git to enforce case insensitivity for branch names. We have a feature request in place in Bitbucket.