[英]How to implement a forked repo from another github account in android studio?
[英]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.