简体   繁体   English

删除 github 中的 repo 后,Android Studio 警告“...Repository not found.”,如何指定从 Android Studio 中的另一个 repo 获取

[英]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.

相关问题 如何在 android 工作室中实现另一个 github 帐户的分叉回购? - How to implement a forked repo from another github account in android studio? Android Studio-Gradle-GitHub存储库 - Android studio - Gradle - GitHub Repo 如何从 github 存储库中的子目录创建 Android Studio 项目 - How to create an Android Studio project from a subdirectory in a github repo 如何在Android Studio中将git repo从Bitbucket转移到Github? - How to transfer git repo from Bitbucket to Github in Android Studio? 如何在github的同一仓库中添加android studio项目 - How to add android studio project in same repo on github Android Studio-如何从仅包含自述文件和许可的Github存储库中“创建” Android项目 - Android Studio - How to “create” an Android project from a Github repo that only contains Readme & License 如何在现有GitHub存储库中创建新的Android Studio项目? - How can I create a new Android Studio Project in an Existing GitHub repo? 将ParseUI-Android github存储库导入Android Studio - Import ParseUI-Android github repo into Android Studio 从Eclipse切换到Android Studio后,如何处理适用于Android应用程序的GitHub存储库? - What to do with GitHub repository for Android app after switching from Eclipse to Android Studio? Android Studio GitHub repo clone上出现curl 56错误 - curl 56 error on Android Studio GitHub repo clone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM