I deleted the project from GitHub and want to re-share (create new repository) it via Android Studio but it still thinks I have it up on GitHub. Is there a way to reset this?
On the Top Menu, Click Git->Manage Remotes and click the delete button.
Open the /.git/config file and delete the lines:
[remote "origin"]
url = https://github.com/githubaccountname/MyProject.git
fetch = +refs/heads/*:refs/remotes/origin/*
Then open Android Studio and you will now be able to run the 'Share project on GitHub' without getting an error that it is already shared on github.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With