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.
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
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