android - 在 github 中删除 repo 后,Android Studio 警告“...Repository not found.”,我如何指定从 Android Studio 中的另一个 repo 获取
问题描述
我在android studio中点击VCS→Git→Fetch,打印事件日志:
17:31 Fetch Failed
origin: remote: Repository not found.
repository 'https://github.com/xxxxxx/yyyyyy.git/' not found
这里的“https://github.com/xxxxxx/yyyyyy.git/”是我删除的存储库,但Android Studio IDE似乎不知道。我应该怎么做才能让 Android Studio 从另一个现有存储库中获取?
解决方案
如果您删除了远程存储库和获取,那么显然将找不到远程存储库。您需要将远程的 URL 更改为新存储库。
使用 SSH
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
使用 HTTPS
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
如果您想通过 android-studio 进行操作,请参阅https://stackoverflow.com/a/53913296/7641405
推荐阅读
- c++ - 在 OpenCV 中的 namedWindow 之前或之后初始化 Tesseract
- node.js - 如何使用 node.js 中的多线程从 .csv 文件下载多个链接?
- node.js - 移动 Angular 项目。重新安装所有依赖项
- php - 在php中按值降序排序和按升序排序索引
- curl - 在 Debian 上连接到 Kong 时出现连接被拒绝错误
- vba - 3 by 3数据集如何排副单元格显示
- codeigniter - 电子邮件的表单验证不是 100%
- javascript - Django - 挑战和响应场景(创建随机字符串并由客户端签名,以便它签入服务器)
- unit-testing - Vue 测试报告器显示预期的抛出错误
- javascript - 如何使用自定义表单数据在某些网站中自动提交 JavaScript Web 表单?