簡體   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

我點擊 VCS → Git → Fetch in android studio,打印事件日志:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM