gpt4 book ai didi

git - 如何删除我在 Git 中添加的无效远程?

转载 作者:IT王子 更新时间:2023-10-29 00:57:08 25 4
gpt4 key购买 nike

这是我解雇的行:

git remote add Nakor git://github.com.nakor/CherryTomato.git

我弄错了,命令应该是:

git remote add Nakor git://github.com/nakor/CherryTomato.git

当我尝试运行第二个命令时,出现此错误:

fatal: Remote Nakor already exists.

这是可以理解的。如何编辑远程 Nakor 指向的端点?

最佳答案

你可以使用 git remote 的 set-url 子命令:

git remote set-url Nakor git://github.com/nakor/CherryTomato.git

关于git - 如何删除我在 Git 中添加的无效远程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5730611/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com