android studio 中github 报错 “github cannot add remote ” “remote github already exist”
1:这个时候关闭android studio,
2:找到刚才的那个项目的目录,找到该目录下面的隐藏文件.git。删除掉这个文件。
3:点击github 的setting,点击repositories,或者直接访问下面的网址
https://github.com/settings/repositories
4:找到要删除的项目,点击进去
5:点击最右边的settings
Code
Issues
0
Pull requests
0
Wiki
Pulse
Graphs
Settings
6:点击最下面的Delete this repository
Delete this repository
Once you delete a repository, there is no going back. Please be certain.
7:然后打开android studio的项目
8:命令行运行
Git 全局设置:
git config --global user.name "kodulf" git config --global user.email "lao_xue@qq.com"
9:然后再试一次提交应该就好了