# git 重命名远程 > 更改用于拉取和推送的远程。 > 属于 `git-extras`。 > 更多信息:。 - 将上游远程更改为 origin: `git rename-remote {{upstream}} {{origin}}`