【问题标题】:After deleting repo in github, Android Studio warns "...Repository not found.", how do I specify fetch from another repo in Android Studio在 github 中删除 repo 后,Android Studio 警告“...Repository not found.”,我如何指定从 Android Studio 中的另一个 repo 获取
【发布时间】:2020-10-20 14:19:37
【问题描述】:

我在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 从另一个现有存储库中获取?

【问题讨论】:

  • 为什么在你删除了存储库后还试图获取?
  • 因为我不知道如何告诉Android studio“原始repo已被删除,你不应该指向它”

标签: android github


【解决方案1】:

如果您删除了远程存储库和获取,那么显然将找不到远程存储库。您需要将远程的 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-05
    • 1970-01-01
    • 1970-01-01
    • 2012-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多