Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot connect to repository from configured remote. you would want to check .git config

Tags:

android

github

I tried sharing my repository to Github in Android Studio & I get this message:

"Can't connect to the repository from the configured remote. You could want to check .git config"

If I ignore and share, Github creates an empty repository and won't upload git files. I reinstalled GitHub and created a link to git.exe in Android Studio and removed repositories with the same name on Github. But again the same message appears. So, how do I create a repository and push files on GitHub? Any help will be really appreciated.

like image 634
Nandini Avatar asked Aug 09 '16 03:08

Nandini


Video Answer


1 Answers

I tried all the above suggestion, but nothing works for me. What did work for me is "open your code editor, delete the remote origins files under vcs > git > remotes..." - the step-by-step process is given below

Step-by-step process:

1) Delete the repository from GitHub

2) Open android studio.

3) Load the file on which you were working.

4) Click on - VCS > Git > Remotes... >

5) Git remotes will popup.

6) Select the file, and click on (-) red minus sign.

7) Remove remote origins

8) Click on yes

done. now you can proceed to upload your code to the GitHub ....happy coding

like image 92
Aditya Anand Avatar answered Oct 18 '22 14:10

Aditya Anand