Skip to content
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

Closed
chuckbelisle opened this issue Apr 26, 2023 · 5 comments · Fixed by #1691
Closed

rename daaas repo to github.com/StatCan/aaw #1659

chuckbelisle opened this issue Apr 26, 2023 · 5 comments · Fixed by #1691
Assignees

Comments

@chuckbelisle
Copy link
Contributor

chuckbelisle commented Apr 26, 2023

Let's rename our main repo from daaas to aaw. Which will also change the user docs URL from https://statcan.github.io/daaas/ to https://statcan.github.io/aaw/

@chuckbelisle chuckbelisle assigned bryanpaget and wg102 and unassigned bryanpaget and wg102 Apr 26, 2023
@bryanpaget
Copy link
Contributor

bryanpaget commented May 2, 2023

@bryanpaget bryanpaget changed the title rename https://github.com/StatCan/daaas to https://github.com/StatCan/aaw rename daaas repo to https://github.com/StatCan/aaw May 8, 2023
@bryanpaget bryanpaget changed the title rename daaas repo to https://github.com/StatCan/aaw rename daaas repo to github.com/StatCan/aaw May 8, 2023
@bryanpaget
Copy link
Contributor

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

@bryanpaget
Copy link
Contributor

When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name, including:

  • Issues
  • Wikis
  • Stars
  • Followers

https://docs.github.com/en/repositories/creating-and-managing-repositories/renaming-a-repository

@bryanpaget
Copy link
Contributor

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.

https://shoehornwithteeth.com/ramblings/2016/12/redirecting-github-pages-after-renaming-a-repository/

@bryanpaget bryanpaget linked a pull request May 10, 2023 that will close this issue
@Souheil-Yazji Souheil-Yazji self-assigned this May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants