【发布时间】:2023-03-05 01:19:01
【问题描述】:
我删除了旧的 Github 存储库(名称:RealmDemo)并使用新名称创建新的存储库:daftar-negatif-investasi。我在 Windows 10 上,我删除了旧的远程存储库并使用以下命令(使用 Git Bash)添加了新的远程存储库:
git remote rm origin
git remote add https://github.com/masumo/daftar-negatif-investasi.git
但是,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)
Android Studio 似乎仍然引用旧的存储库。这个问题有什么解决办法吗?
【问题讨论】:
标签: android-studio github