Interview Prep/Git & GitHub/Recovery and incident handling

How do you recover a deleted repository or branch on GitHub?

IntermediateProductionRecovery and incident handling
Answer

A deleted branch tied to a PR can be restored from the PR page. A deleted repo can be restored by an org owner within 90 days from the settings (for repos that were not forks with downstream forks), or by contacting support. Always keep a mirror backup for anything critical.

All Git & GitHub questions Roadmap: Git & GitHub

More on Recovery and incident handling