Skip to content

Commit b4767d8

Browse files
secondwtqOlingCat
authored andcommitted
Fixes according to feedback.
1 parent 27857d2 commit b4767d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/02-git-basics/sections/viewing-history.asc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ a11bef0 - Scott Chacon, 6 years ago : first commit
176176
| `%cn` | 提交者(committer)的名字
177177
| `%ce` | 提交者的电子邮件地址
178178
| `%cd` | 提交日期
179-
| `%cr` | 提交日期(相对
179+
| `%cr` | 提交日期(距今多长时间
180180
| `%s` | 提交说明
181181
|================================
182182

@@ -264,13 +264,13 @@ $ git log -Sfunction_name
264264
[cols="2,4",options="header"]
265265
|================================
266266
| 选项 | 说明
267-
| `-(n)` | 仅显示最近的 n 条提交
267+
| `-(n)` | 仅显示最近的 n 条提交
268268
| `--since`, `--after` | 仅显示指定时间之后的提交。
269269
| `--until`, `--before` | 仅显示指定时间之前的提交。
270270
| `--author` | 仅显示作者匹配指定字符串的提交。
271271
| `--committer` | 仅显示提交者匹配指定字符串的提交。
272-
| `--grep` | 仅显示提交说明中包含指定字符串的提交
273-
| `-S` | 仅显示添加或删除内容匹配指定字符串的提交
272+
| `--grep` | 仅显示提交说明中包含指定字符串的提交
273+
| `-S` | 仅显示添加或删除内容匹配指定字符串的提交
274274
|================================
275275

276276
来看一个实际的例子,如果要查看 2008 年 10 月期间 Git 源代码仓库中,由 Junio Hamano 提交的修改了测试文件并且尚未合并的提交,可以使用下面的命令:(((log filtering)))

0 commit comments

Comments
 (0)