git remote
管理跟踪的远程仓库(remotes)。 更多信息:https://git-scm.com/docs/git-remote。
- 列出已经存在的远程仓库,包括它们的名字和 URL:
git remote
- 查看某个远程仓库的信息:
git remote show
- 添加远程仓库:
git remote add
- 更改远程仓库地址链接(使用
--add选项不会移除现有的 URL):
git remote set-url
- 查看远程仓库的 URL:
git remote get-url
- 移除远程仓库:
git remote remove
- 重命名远程仓库:
git remote rename
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
