git, git-rebase: add Chinese translation (#8494)

This commit is contained in:
kasodesyn
2022-09-18 19:47:24 +08:00
committed by GitHub
parent aa330b591d
commit cf54305ca8
2 changed files with 66 additions and 0 deletions

29
pages.zh/common/git.md Normal file
View File

@@ -0,0 +1,29 @@
# git
> 分布式版本控制系统。
> 类似如 `commit`、`add`、`branch`、`checkout`、`push` 等子命令都有自己的使用文档,可以通过 `tldr git {{子命令}}` 的形式查阅。
> 更多信息:<https://git-scm.com/>.
- 检查 git 的版本号:
`git --version`
- 显示帮助文档:
`git --help`
- 显示 git 子命令的详细帮助文档(如 `clone`, `add`, `push`, `log` 等子命令):
`git help {{子命令}}`
- 执行 git 的子命令:
`git {{子命令}}`
- 在自定义的 git 仓库根路径下执行子命令:
`git -C {{仓库地址}} {{子命令}}`
- 在给定参数条件下,执行 git 的子命令:
`git -c '{{配置项}}={{值}}' {{子命令}}`