问题描述
我尝试在Android Studio&中将我的存储库共享给Github;我收到此消息:
I tried sharing my repository to Github in Android Studio & I get this message:
如果我忽略并共享,Github将创建一个空的存储库,并且不会上传git文件.我重新安装了GitHub,并在Android Studio中创建了git.exe的链接,并删除了Github上同名的存储库.但是,再次出现相同的消息.那么,如何在GitHub上创建存储库并推送文件?任何帮助将不胜感激.
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.
推荐答案
我尝试了以上所有建议,但对我没有任何帮助.对我有用的是"打开代码编辑器,删除vcs> git> remotes ...下的远程源文件... "-下面是分步过程
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
分步过程:
1)从GitHub删除存储库
1) Delete the repository from GitHub
2)打开android studio.
2) Open android studio.
3)加载您正在使用的文件.
3) Load the file on which you were working.
4)单击-VCS> Git>遥控器...>
4) Click on - VCS > Git > Remotes... >
5)Git遥控器将弹出.
5) Git remotes will popup.
6)选择文件,然后单击(-)红色减号.
6) Select the file, and click on (-) red minus sign.
7)删除远程起源
8)单击是
完成.现在您可以继续将代码上传到GitHub....快乐的编码
done.now you can proceed to upload your code to the GitHub....happy coding
这篇关于无法从已配置的远程服务器连接到存储库.您将要检查.git config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!