In the comments of my article How to use GitHub with Android Studio 1.x, Cynthia gets the following error:
can't add remote fatal: remote origin already exists. during execution git remote add origin
Unfortunately, it seems that Android Studio doesn’t offer any way to modify/add/remove git remotes from your repository. However you can still remove it by following the below steps. I am using Windows 8.1 but it should work on other operating systems (for Mac/Linux just replace command line with the console or terminal).
First, navigate to the root of your project in the file system, right click the background of the directory and select Git Bash:
This will bring up the git console. In the git console type the following command:
git remote rm origin
The git remote will now be removed from the repository.
If you found this post helpful and you’re looking for more in-depth training, check out my ebook How to Use GitHub with Android Studio: A complete step-by-step guide to mastering the technology.