mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
git-{bisect, blame, blame-someone-else}: add Chinese translation (#16064)
This commit is contained in:
parent
9df34127fa
commit
ab98054f31
3 changed files with 61 additions and 0 deletions
25
pages.zh/common/git-bisect.md
Normal file
25
pages.zh/common/git-bisect.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# git bisect
|
||||
|
||||
> 使用二分查找定位引入错误的提交。
|
||||
> Git 会自动在提交历史中来回跳转,逐步缩小问题提交的范围。
|
||||
> 更多信息:<https://git-scm.com/docs/git-bisect>.
|
||||
|
||||
- 在已知有问题提交和已知正常提交(通常较旧)之间开始二分查找会话:
|
||||
|
||||
`git bisect start {{问题提交}} {{正常提交}}`
|
||||
|
||||
- 对 `git bisect` 自动选中的每个提交进行测试后,标记为"正常"或"有问题":
|
||||
|
||||
`git bisect {{good|bad}}`
|
||||
|
||||
- 当 `git bisect` 定位到问题提交后,结束二分查找会话并返回原分支:
|
||||
|
||||
`git bisect reset`
|
||||
|
||||
- 在二分查找过程中跳过某个提交(例如因其他问题导致测试失败的提交):
|
||||
|
||||
`git bisect skip`
|
||||
|
||||
- 显示当前二分查找的进度日志:
|
||||
|
||||
`git bisect log`
|
8
pages.zh/common/git-blame-someone-else.md
Normal file
8
pages.zh/common/git-blame-someone-else.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# git blame-someone-else
|
||||
|
||||
> 将你的糟糕代码归咎于其他人。
|
||||
> 更多信息:<https://github.com/jayphelps/git-blame-someone-else>.
|
||||
|
||||
- 更改提交的提交者和作者:
|
||||
|
||||
`git blame-someone-else "{{作者 <someone@example.com>}}" {{提交}}`
|
28
pages.zh/common/git-blame.md
Normal file
28
pages.zh/common/git-blame.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# git blame
|
||||
|
||||
> 显示文件每一行的最后修改者和提交哈希值。
|
||||
> 更多信息:<https://git-scm.com/docs/git-blame>.
|
||||
|
||||
- 显示文件的每一行,包含作者名字和提交哈希值:
|
||||
|
||||
`git blame {{路径/到/文件}}`
|
||||
|
||||
- 显示文件的每一行,包含作者邮箱和提交哈希值:
|
||||
|
||||
`git blame {{[-e|--show-email]}} {{路径/到/文件}}`
|
||||
|
||||
- 显示文件在指定提交时的每一行,包含作者名字和提交哈希值:
|
||||
|
||||
`git blame {{commit}} {{路径/到/文件}}`
|
||||
|
||||
- 显示文件在指定提交之前的每一行,包含作者名字和提交哈希值:
|
||||
|
||||
`git blame {{commit}}~ {{路径/到/文件}}`
|
||||
|
||||
- 显示指定行范围内的作者名字和提交哈希值信息:
|
||||
|
||||
`git blame -L {{start_line}},{{end_line}} {{路径/到/文件}}`
|
||||
|
||||
- 忽略空白字符和行移动:
|
||||
|
||||
`git blame -w -C -C -C {{路径/到/文件}}`
|
Loading…
Add table
Reference in a new issue