-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename daaas repo to github.com/StatCan/aaw #1659
Comments
Github will redirect requests to the new URL One very nice feature in Github when you rename a repo, is that Github will save the old repo name and all the related URLs and redirect traffic to the new URLs. Since your username/org and repo name are a part of the URL, a rename will change the URL. Since Github saves the old repo name and redirects requests to the new URLs, if anyone uses links based on the old repo name when trying to access issues, wiki, stars, or followers they will still arrive at the new location on the Github website. Github also redirects lower level Git commands like git clone, git fetch, etc. https://stackoverflow.com/questions/2041993/how-do-i-rename-a-git-repository |
When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name, including:
https://docs.github.com/en/repositories/creating-and-managing-repositories/renaming-a-repository |
Renaming an entire repository GitHub allows you to rename a git repository and will automatically redirect references from the old name to the new one. This works for links to the web UI, API requests, git command line operations… but not GitHub Pages. Which means that if you have your documentation publicly published at https://your-username.github.io/old-repo-name/ and you rename the repository, none of the publicly cached references to your docs will redirect to the equivalent page at https://your-username.github.io/new-repo-name. |
Let's rename our main repo from
daaas
toaaw
. Which will also change the user docs URL fromhttps://statcan.github.io/daaas/
to https://statcan.github.io/aaw/The text was updated successfully, but these errors were encountered: