Is it possible to unarchive repository one it is archived? #23080
-
The GitHub documentation on archiving repositories does not mention if this is a one way operation or if let say I did archive the wrong repository my mistake or if I change my mind I can “un-archive” it and make is active again? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
It’s reachable via Interesting that you mention a lack of documentation, there is documentation for restoring deleted repositories (you apparently have 90 days for isolated repositories – you can’t recover deleted forks in live networks – although you could probably retrieve the individual commits): |
Beta Was this translation helpful? Give feedback.
-
Ticket to document: Create documentation for unarchiving-repositories · Issue #18753 · github/docs · GitHub |
Beta Was this translation helpful? Give feedback.
-
@emil-yankov_rimes 👋t3: thanks for posting - was @jsoref able to assist, if so, don’t forget to mark their comment as the solution, thanks! |
Beta Was this translation helpful? Give feedback.
-
For those who need to programmatically unarchive a batch of multiple repositories, I implemented one based on python using graphql api. |
Beta Was this translation helpful? Give feedback.
-
Having "Unarchive" in the danger-zone seems strange as it's not something that can't be un-done. Maybe there needs to be "warning zone"? |
Beta Was this translation helpful? Give feedback.
It’s reachable via
/settings
in the same place as you would have archived the repository:Interesting that you mention a lack of documentation, there is documentation for restoring deleted repositories (you apparently have 90 days for isolated repositories – you can’t recover deleted forks in live networks – although you could probably retrieve the individual commits):
https://docs.github.com/en/repositories/creating-and-managing-repositories/restoring-a-deleted-repository
And this is linked from its sibling:
https://docs.github.com/en/repositories/creating-and-managing-repositories/deleting-a-repository