Answers: <p>That should work. If preserving the history is not important, collaborators can just re-clone the repo "fresh" from the new URL. </p>
  
  <p>If you want to preserve the history you can use the <a href="https://help.github.com/en/articles/changing-a-remotes-url" rel="nofollow noreferrer"><code>git remote set-url</code></a> command from inside a current repository clone. That will switch the remote repository name from the old (deleted) account to the new one.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-08-23T19:27:38.917Z
Answers: 2019-08-23T19:27:38.917Z
Answers: wrk2bike
Body: <p>Organization's Github account was deleted but there is backup of all the repos on hard disk.  So will creating new repo of same names and then pushing the code restore the code base ?<br>
  (The account was deleted more than 2 months ago.)</p>
  
Tags: <github><organization>
Title: Restore Github organization account
UserDisplayName: gkr2d2
ThreadText: # Restore Github organization account
  
  (Asked by: username_0 on 2019-08-20)
  
  Organization's Github account was deleted but there is backup of all the repos on hard disk. So will creating new repo of same names and then pushing the code restore the code base ?  
  (The account was deleted more than 2 months ago.)
  
  **Tags:** github, organization
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-23. Score: 1
  
  That should work. If preserving the history is not important, collaborators can just re-clone the repo "fresh" from the new URL.
  
  If you want to preserve the history you can use the [`git remote set-url`](https://help.github.com/en/articles/changing-a-remotes-url) command from inside a current repository clone. That will switch the remote repository name from the old (deleted) account to the new one.
  
  
  ---
  
  