gpt4 book ai didi

git - 如何重命名 git remote?

转载 作者:太空狗 更新时间:2023-10-29 14:05:32 26 4
gpt4 key购买 nike

我目前有一个名为 heroku 的 git Remote ,我想将它重命名为 production

$ git remote -v
heroku https://git.heroku.com/example.git (fetch)
heroku https://git.heroku.com/example.git (push)

最佳答案

$ git remote rename <old-name> <new-name>

所以,对于这个例子:

$ git remote rename heroku production

有用的文档在这里:https://help.github.com/articles/renaming-a-remote/

关于git - 如何重命名 git remote?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33840617/

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