Can a retired repository path be restored for transfer to an organization owned by the same account? #207044
Replies: 8 comments 2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
|
GitHub generally retires the old OWNER/REPOSITORY combination after a personal username change, and that retired path cannot normally be reused or assigned to another owner. In your case, even though waysnx is now an organization owned by the same account that previously used waysnx as its personal username, GitHub's repository transfer system still treats waysnx/waysnx-ui-kit as a retired path. There is no standard self-service option to unretire that repository path. The best option is to contact GitHub Support and ask whether they can manually release the retired waysnx/waysnx-ui-kit path for transfer to the waysnx organization. If GitHub Support cannot release it, you would need to transfer the repository to the organization under another available repository name. You should also ask Support whether they can provide any alternative that preserves the waysnx-ui-kit name, since the repository was originally located at that path. |
|
Thanks for the guidance. In our case, the source repository and target organization are both owned by the same GitHub account. We are specifically trying to preserve the existing repository, including its history, issues, PRs, stars, releases, and public identity. GitHub currently rejects the transfer because waysnx/waysnx-ui-kit is a retired repository path. Before attempting a rename workaround, could a GitHub Staff member confirm whether there is any supported administrative procedure to allow this specific retired OWNER/REPOSITORY combination to be reassigned to the organization owned by the same account? We would prefer not to rename the repository or create a new repository unless that is the only supported option. |
This comment was marked as spam.
This comment was marked as spam.
|
You're running into GitHub's repojacking protection. When an account is renamed, GitHub automatically "retires" the old owner/repo URL. This is a security feature to stop bad actors from registering your old username and pushing malicious code to people who haven't updated their links yet. Even though you own both the new organization and the original account, the automated system still blocks it just to be safe.Since this is a backend security lock, nobody here in the community discussions can unlock it for you. You'll just need to reach out to GitHub Support directly. Just open a ticket, explain that you own both accounts (just like you did here), and ask them to manually "un-retire" the namespace so you can transfer it. They deal with this scenario pretty often and should be able to release it for you without any issues! Hope this helps! |
|
Update — Thank you for the information and discussion so far. We have now opened a GitHub Support ticket regarding this issue and provided GitHub Support with the relevant repository and namespace details. We are currently waiting for GitHub Support to review the case and advise on whether the retired repository path can be restored or otherwise resolved. We will update this discussion once we receive a response from GitHub Support. Thank you to everyone who has provided guidance and suggestions. |
Hey — I dug into this one and unfortunately it's a genuine "no", but it's not arbitrary, and there's a path forward.
|
|
Update — transfer to a different available repository name is also blocked Thanks for the explanation. We accepted this answer and closed the discussion because we understood that waysnx/waysnx-ui-kit itself is permanently retired. We have since tested a different migration path. Current repository: Target organization: Target repository name: GitHub's transfer dialog explicitly reports: However, after submitting the transfer, GitHub rejects it with: Repository name waysnx/waysnx-ui-kit has been retired and cannot be reused So it appears that the retirement of the historical waysnx/waysnx-ui-kit namespace may be preventing the current repository from being transferred to the same organization even under a different repository name. Is this expected behavior? If so, is there a supported way to transfer waysnx-tech/waysnx-ui-kit to the waysnx organization under a new name such as waysnx/ui-kit while preserving the repository's history, issues, stars, releases, and other repository data? We are not asking GitHub to release/reuse waysnx/waysnx-ui-kit. We only want to understand whether the current repository can be moved to the organization under a different, available repository name. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
Hi GitHub team,
I recently changed my personal GitHub username from
waysnxtowaysnx-tech.Before the username change, I had this public repository:
https://github.com/waysnx/waysnx-ui-kit
After the username change, the repository is now:
https://github.com/waysnx-tech/waysnx-ui-kit
I also have an existing GitHub organization named
waysnx, which isowned by my
waysnx-techaccount.I am trying to transfer the existing repository from:
waysnx-tech/waysnx-ui-kit
to:
waysnx/waysnx-ui-kit
However, GitHub's transfer screen reports:
"The repository waysnx-ui-kit has been retired and cannot be reused."
I understand that GitHub can retire an OWNER/REPOSITORY combination
after a username change.
My question is:
Can GitHub restore/release the retired
waysnx/waysnx-ui-kitpathspecifically for this transfer, given that:
waysnxwas my previous personal username.waysnx-techis the same account after the username change.waysnxis now an organization owned by that same account.waysnx/waysnx-ui-kitwas the original location of this repository.different repository.
I would like to preserve the repository name and public URL because
the project is already publicly documented and referenced.
If the retired path cannot be restored, could you please confirm
whether there is any supported way to transfer the repository to the
waysnxorganization while retaining thewaysnx-ui-kitrepositoryname?
Thank you.
All reactions