Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 如何更改连接到的当前存储库?_Git_Github - Fatal编程技术网

Git 如何更改连接到的当前存储库?

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

我已删除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.url

如果您有新的遥控器可用,您可以更新源遥控器使用的URL

git remote set-url origin <your new remote URL or path>
git remote rm origin

我建议你读一下@NickTomlin谢谢,我一定会看一看的。