Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Project says project is already on GitHub despite the fact I deleted repository.

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?

like image 810
sanic Avatar asked Jan 17 '15 04:01

sanic


2 Answers

On the Top Menu, Click Git->Manage Remotes and click the delete button.

like image 58
beginner Avatar answered Oct 17 '22 06:10

beginner


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.

like image 31
BrentM Avatar answered Oct 17 '22 06:10

BrentM