Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to re-publish a repository that was previously deleted from github?

Tags:

github

A couple months back I deleted a repo from github using "danger zone -> delete this repo" from the project control panel on github.com.

Now I would like to put the code back up on github. I am using the github desktop application to push my code to github.

In the github desktop application, github still thinks the old deleted repo is alive on my account ... so I can't push the code a second time.

How can I completely remove the project from github so that I can push my code again?

like image 927
Ryan Avatar asked Oct 29 '25 15:10

Ryan


1 Answers

I have done this by removing the [remote "origin"] section from the .git/config file for the project and republishing the repository to github.

like image 100
benedict_w Avatar answered Nov 01 '25 13:11

benedict_w



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!