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
"Transferring a repository" could mention something about forking back after transfering #13044
Comments
|
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
|
@bjorn |
|
Hi @bjorn! These are great questions. Could you please reach out to the Community Forum to find out the answers? We'd then be happy to document that information. I'll close this issue for now, but feel free to re-open once we have that information to act on. |
Rather than starting another topic, I've decided to just give it a try. I did the following:
And I was glad to see, that this way, the redirects from Since there is no way to rename while forking, and forking back with the same name would replace the redirects, I think it would be worthwhile to add a section about these steps to the documentation. |
|
Hi @bjorn
I think the best place to mention that would be in this bullet point, beneath the codeblock demonstrating how to update a remote: Be careful to keep the indentation so the new information is contained in the same bullet point. You or anyone else is welcome to open a PR to address this! |
Do you mean that, when a repo was previously moved from |
|
@bjorn That's right. The redirect is created when the repository is moved. The redirect isn't deleted but it can be overridden. When you visit In your example, once |
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository
What part(s) of the article would you like to see updated?
I've already transferred a repository. The documentation states "All links to the previous repository location are automatically redirected to the new location.", which is working great. However, now I would like to know if I can create a fork back to the original account, without destroying those redirects.
Intuitively I would think, that the redirects will be lost entirely, when I would simply fork the repository, but it would be helpful if the docs could confirm this.
As a workaround to this, I am thinking about forking to a temporary account first, then renaming the repository (since it doesn't seem possible to rename while forking), and then transferring the renamed repository to the original account. Before I do this I would like to be sure that the redirects will keep working for the original name, and I think similarly it would be helpful if the docs could include some information about this.
Additional information
No response
The text was updated successfully, but these errors were encountered: