Folders cannot have their case changed once they have been created

Issue #11637 wontfix
Ben Collins
created an issue

I created a branch with the name Bugfix/Whatever. I am wanting to change this to bugfix/whatever, but there seems to be no way to do so - Even if all my branches with Bugfix/ get deleted, any new branches get the 'Bugfix' casing instead of 'bugfix'.

Not a huge dealbreaker, but we use /bugfix/' on GitHub and it's creating issues around my branches remembering where to push to since I keep having to manually change it.

Comments (7)

  1. Gary Sackett staff

    Hey Ben, Assuming you're currently on the branch you want to rename: git branch (-m | -M) [<oldbranch>] <newbranch>

    Where the parameters are:

    <oldbranch> The name of an existing branch to rename.

    <newbranch> The new name for an existing branch. The same restrictions as for <branchname> apply.

    For the second part of this, is the name of the repo 'Bugfix', or are you physically calling your branches 'Bugfix/example'?



  2. Ben Collins reporter

    The name of my branch is Bugfix/whatever. Once that's created in SourceTree every other branch with bugfix/whatever will have its case changed to Bugfix. This will occur even once all the existing Bugfix/ branches have been deleted or renamed.

    Hope that's helpful!

  3. Marcus Bertrand staff


    Sorry for the extreme delayed response, but this is an issue with Git itself, and depends on your local operating system. has a pretty decent write up on it. In short, it is probably easier to just not try and have case sensitive branch names. I'm not sure what you might be doing different with the repo on GitHub, so I can't speak to why it might work differently in their UI.


  4. Log in to comment