'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?
Solution 1:[1]
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.
Solution 2:[2]
I had a same problem, and I solved it in this way.
File->Setting->Version Control-> minus(remove) the Git path
Solution 3:[3]
On the Top Menu, Click Git->Manage Remotes and click the delete button.
Solution 4:[4]
Step 1: Remove all .git and .gitignore folders from your project directory Step 2: VCS: Import into version control Step 3: Create Git repository Step 4: (Same dialog) Last option: Share project on Github Step 5: Describe and Hit Share Step 6: In next pop up : Hit -> Add (Will take some time). Step 7 : Then Go to VCS in menu options at top on android studio -> Git -> Push
Then check your github account & See if its committed & pushed. (-; Happy Coding :-)-----\
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | BrentM |
| Solution 2 | ??? |
| Solution 3 | beginner |
| Solution 4 | Clean Coder |
