Files
tldr/pages.zh/common/git-rename-remote.md

9 lines
269 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git 重命名远程
> 更改用于拉取和推送的远程。
> 属于 `git-extras`。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-rename-remote>。
- 将上游远程更改为 origin
`git rename-remote {{upstream}} {{origin}}`