Git 如何更改连接到的当前存储库?
我已删除GitHub上的存储库,并尝试创建一个本地存储库 当我这样做时:Git 如何更改连接到的当前存储库?,git,github,Git,Github,我已删除GitHub上的存储库,并尝试创建一个本地存储库 当我这样做时:远程显示原点 结果是: remote: Repository not found. fatal: repository 'https://github.com/userName/repositoryName.git/' not found 这样做: git config remote.origin.url <your new repository URL> git config remote.origin.u
远程显示原点
结果是:
remote: Repository not found.
fatal: repository 'https://github.com/userName/repositoryName.git/' not found
这样做:
git config remote.origin.url <your new repository URL>
git config remote.origin.url
如果您有新的遥控器可用,您可以更新源遥控器使用的URL
git remote set-url origin <your new remote URL or path>
git remote rm origin
我建议你读一下@NickTomlin谢谢,我一定会看一看的。