Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.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 - Fatal编程技术网

更新git回购名称

更新git回购名称,git,Git,我刚刚更改了我的github回购协议的名称,现在我的本地回购协议(如预期的)找不到它。我该如何更新名称,还是应该将其视为新的远程回购?从我的阅读方式来看,我的理解是您更改了存储库的名称(更改了存储库的URL),现在您希望更新URL以匹配新的存储库位置 您可以使用git remote set url切换现有远程repo的url

我刚刚更改了我的github回购协议的名称,现在我的本地回购协议(如预期的)找不到它。我该如何更新名称,还是应该将其视为新的远程回购?

从我的阅读方式来看,我的理解是您更改了存储库的名称(更改了存储库的URL),现在您希望更新URL以匹配新的存储库位置

您可以使用
git remote set url
切换现有远程repo的url