What is a repository slug?
A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if your repository name was "føøbar
", in the URL it would become "foobar
". Similarly, "foo bar
" would become "foo-bar
".
Differences between Bitbucket Cloud and Server repository slugs
Bitbucket Cloud repository slug | Bitbucket Server repository slug |
---|---|
Allows ASCII alphanumeric characters, underscores ( | Allows ASCII alphanumeric characters, underscores ( |
Limited to 62 characters. | Allows greater than 62 characters. |
Can only end with an en dash if the entire repository slug is made up of en dashes ( | Allows a repository slug to end with an en dash ( |
Can start a repository slug with an underscore ( A repository slug can also start with an en dash ( | Can only start with alphanumeric characters. |
Does not allow consecutive en dashes ( Bitbucket Cloud replaces any consecutive characters in a repository name that are not allowed in a repository slug with only one en dash, so | Allows the use of consecutive en dashes ( Bitbucket Server replaces each character in a repository name that is not allowed in a repository slug with en dashes, so |