mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-24 00:02:09 +02:00
git-remote: add Chinese translation (#7459)
This commit is contained in:
parent
bee87ee2b5
commit
6ccf43e391
1 changed files with 28 additions and 0 deletions
28
pages.zh/common/git-remote.md
Normal file
28
pages.zh/common/git-remote.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# git remote
|
||||
|
||||
> 管理跟踪的远程仓库(remotes)。
|
||||
> 更多信息:<https://git-scm.com/docs/git-remote>.
|
||||
|
||||
- 列出已经存在的远程仓库,包括它们的名字和 URL:
|
||||
|
||||
`git remote -v`
|
||||
|
||||
- 查看某个远程仓库的信息:
|
||||
|
||||
`git remote show {{远程仓库名字}}`
|
||||
|
||||
- 添加远程仓库:
|
||||
|
||||
`git remote add {{远程仓库名字}} {{远程仓库 URL}}`
|
||||
|
||||
- 更改远程仓库地址链接(使用 `--add` 选项不会移除现有的 URL):
|
||||
|
||||
`git remote set-url {{远程仓库名字}} {{新 URL}}`
|
||||
|
||||
- 移除远程仓库:
|
||||
|
||||
`git remote remove {{远程仓库名字}}`
|
||||
|
||||
- 重命名远程仓库:
|
||||
|
||||
`git remote rename {{旧名字}} {{新名字}}`
|
Loading…
Add table
Reference in a new issue