Search code examples
azure-devopsazure-repos

Is it possible to create an alias for a repository URL in Azure DevOps?


Is it possible to add an alternative URL for an Azure DevOps repository?

The reason is that we have a project name with a space, e.g. Stress Some Tools, which now results in a git URL, which is problematic with many tools:

https://user@dev.azure.com/myorg-dev/Stress%20Some%20Tools/_git/Good%20Utils

Hence, an easy solution is getting rid of that %20 encoded space. Renaming the repository, however, would break existing links for everyone. So I hoped for an alias feature or something similar. The alias has to work for external tools, so ideally azure.com/sometools and azure.com/some%20tools would just point to the same page.

EDIT: If only the project name (i.e. Stress Some Tools) is affected, the old and new URL will work after a rename, but not for git:

Azure DevOps rename a project docs:

The URL continues to work for both the new team name and the old team name. This functionality is intended to avoid breaking links.

If your project uses Git, then your remote references for each repository from the renamed project must be updated.


Solution

  • No there is no way to rename a git repo without breaking existing users. There is no way to register redirects.