[英]After deleting repo in github, Android Studio warns “…Repository not found.”, how do I specify fetch from another repo in Android Studio
I click VCS → Git → Fetch in android studio, the event log print:我点击 VCS → Git → Fetch in android studio,打印事件日志:
17:31 Fetch Failed
origin: remote: Repository not found.
repository 'https://github.com/xxxxxx/yyyyyy.git/' not found
Here the "https://github.com/xxxxxx/yyyyyy.git/" is a repository that I have deleted, but Android Studio IDE seem not to know that.这里的“https://github.com/xxxxxx/yyyyyy.git/”是我已删除的存储库,但 Android Studio IDE 似乎不知道这一点。 What should I do to let Android Studio fetch from another existing repository?
我应该怎么做才能让 Android Studio 从另一个现有存储库中获取?
If you've deleted the remote repository and the fetch then obviously the remote repository will not be found.如果您删除了远程存储库和获取,那么显然将找不到远程存储库。 You need to change the remote's URL to your new repository.
您需要将遥控器的 URL 更改为您的新存储库。
Using SSH使用 SSH
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
Using HTTPS使用 HTTPS
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
If you want to do it through android-studio see https://stackoverflow.com/a/53913296/7641405如果您想通过 android-studio 进行操作,请参阅https://stackoverflow.com/a/53913296/7641405
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.