How to change the casing of a project name?

I'm trying to change the casing of a project name, but even though the repository name would remain the same (it's all lower-case), BitBucket won't let me do it.

Is it possible to change the name to something else and then rename it back with proper casing? Are there any unforeseen implications of doing this to the repository (e.g. redirect URLs; push/pull authentication issues, etc)?

Would like to know if it's 100% safe before trying it.

Thanks!

3 answers

1 accepted

This widget could not be displayed.

The associated repository URLs change. The link should work now. Or use this one:

https://confluence.atlassian.com/x/swF7DQ

(If you accept my answer, please mark it accepted. I'm gunning for the T-SHIRT swag. :-)

This widget could not be displayed.

You can rename a repository yes. When you rename a repository, the repo_slug also changes. You can't change case with rename though. So, if you name something "My Repository" you can't change it to "my repository." This is because with each rename Bitbucket attempts to create a new slug. To Bitbucket, names like:

My Repository
my repository

Are identical. Both result in a repo-slug of my-respository. See the documentation for details on renaming.

For some reason the link you posted seems to be dead to me...

Anyway, what would happen if I have a repository named:

MyRepository

then I change it to

AnotherRepository

and then change it back to

myrepository

Will this work and what would be the implications?

This widget could not be displayed.

You can control how the name of a repository appears in the Bitbucket UI, yes. You have limited control over the repository name as it appears in the URL for your repository.

So, you can name your repository "My Repository" using Bitbucket's Create repository dialog. But the name of the repository in the URL appears like this:

https://bitbucket.org/tutorials/my-repository

The my-repository is known as a repo_slug. The internal name Bitbucket software uses to identify your repository. That slug is always going to be lower case with a dash replacing any spaces. That is because our software cannot use the display name with spaces and upper case.

Got it, thanks. Anything regarding the second question? Is it possible to change the name to something else and then rename it back with proper casing?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

288 views 15 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you