'The repository [myname] has been retired and cannot be reused

I don't know what I did, but I accidentally deleted a repo on GitHub and it's important that it exists as several projects use it. Luckily I still have the code on my machine but when I push it says the repo must exist, and when I try to recreate the repo I get "The repository [myname] has been retired and cannot be reused". How can I undo/get around this?



Solution 1:[1]

  1. Change the organization name
  2. Create a repository
  3. Change the name of the organization back

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 guangzan