git*: update outdated pages, fix English pages (#14149)

This commit is contained in:
Sebastiaan Speck
2024-10-13 10:26:47 +02:00
committed by GitHub
parent 896e024860
commit f21fa6a211
96 changed files with 302 additions and 302 deletions

View File

@@ -9,7 +9,7 @@
- 查看指定文件或指定目录的历史,包括每次提交所引入的差异:
`git log -p {{路径/到/文件或目录}}`
`git log {{-p|-u|--patch}} {{路径/到/文件或目录}}`
- 显示每次提交的文件修改统计信息:
@@ -25,12 +25,12 @@
- 查看提交消息中包含特定字符串(大小写敏感)的提交:
`git log -i --grep {{字符串}}`
`git log {{-i|--regexp-ignore-case}} --grep {{字符串}}`
- 查看特定作者的最近 N 条提交:
`git log -n {{数字}} --author={{作者}}`
`git log {{-n|--max-count}} {{数字}} --author "{{作者}}"`
- 查看两个日期之间的提交yyyy-mm-dd
`git log --before="{{2017-01-29}}" --after="{{2017-01-17}}"`
`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"`