From 6ccf43e391dcfa58607dc0631e76535c22f19a9c Mon Sep 17 00:00:00 2001 From: Asurada <43401755+ousugo@users.noreply.github.com> Date: Sat, 20 Nov 2021 20:27:39 +0800 Subject: [PATCH] git-remote: add Chinese translation (#7459) --- pages.zh/common/git-remote.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages.zh/common/git-remote.md diff --git a/pages.zh/common/git-remote.md b/pages.zh/common/git-remote.md new file mode 100644 index 000000000..5f5a2de1e --- /dev/null +++ b/pages.zh/common/git-remote.md @@ -0,0 +1,28 @@ +# git remote + +> 管理跟踪的远程仓库(remotes)。 +> 更多信息:. + +- 列出已经存在的远程仓库,包括它们的名字和 URL: + +`git remote -v` + +- 查看某个远程仓库的信息: + +`git remote show {{远程仓库名字}}` + +- 添加远程仓库: + +`git remote add {{远程仓库名字}} {{远程仓库 URL}}` + +- 更改远程仓库地址链接(使用 `--add` 选项不会移除现有的 URL): + +`git remote set-url {{远程仓库名字}} {{新 URL}}` + +- 移除远程仓库: + +`git remote remove {{远程仓库名字}}` + +- 重命名远程仓库: + +`git remote rename {{旧名字}} {{新名字}}`