mas*_*.mo 2 github android-studio
我删除了我的旧Github存储库(名称:RealmDemo)并使用新名称创建新的repo:daftar-negatif-investasi.我在Windows 10上,我已经删除了旧的远程存储库并使用以下命令添加了新的远程存储库(使用Git Bash):
git remote rm origin
git remote add https://github.com/masumo/daftar-negatif-investasi.git
Run Code Online (Sandbox Code Playgroud)
但是,Android Studio总是给我这个错误信息:
失败并显示错误:致命:未找到存储库' https://github.com/masumo/RealmDemo.git/ '
当我尝试进入我的Github存储库时.
我相信远程存储库已经改变,因为运行git remote -v
命令给我这个结果:
origin https://github.com/masumo/daftar-negatif-investasi.git (fetch)
origin https://github.com/masumo/daftar-negatif-investasi.git (push)
Run Code Online (Sandbox Code Playgroud)
似乎Android Studio仍然引用旧的存储库.解决这个问题的方法有哪些
试试这个:
打开/.git/config文件并删除以下行:
[remote "origin"]
url = https://github.com/githubaccountname/MyProject.git
fetch = +refs/heads/*:refs/remotes/origin/*
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4918 次 |
最近记录: |