git重命名远程仓库

git重命名远程仓库教程

git 中,我们要重命名远程仓库,我们可以使用 git remote 命令。

git重命名远程仓库详解

语法

git remote rename old new

参数

参数 描述
old 旧远程仓库名。
new 新远程仓库名。

说明

git remote rename 命令用于重命名远程仓库。

git重命名远程仓库总结

在 git 中,我们要重命名远程仓库,我们可以使用 git remote rename old new 命令。