我已经删除了我在 GitHub 上的存储库并尝试在本地创建一个。
当我这样做时:remote show origin
结果是:
remote: Repository not found.
fatal: repository 'https://github.com/userName/repositoryName.git/' not found
最佳答案
如果您有新的 Remote 可用,您可以更新原始 Remote 使用的 URL。
git remote set-url origin <your new remote URL or path>
如果您没有关联的 Remote ,您可以简单地删除当前的原始 Remote 。
git remote rm origin
关于git - 如何更改我连接的当前存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39678563/