Skip to content

Commit 43e366b

Browse files
committed
Sync 02-git-basics viewing-history.
1 parent abe7f67 commit 43e366b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ a11bef0 - Scott Chacon, 6 years ago : first commit
171171
| `%p` | 父对象的简短哈希字串
172172
| `%an` | 作者(author)的名字
173173
| `%ae` | 作者的电子邮件地址
174-
| `%ad` | 作者修订日期(可以用 -date= 选项定制格式)
174+
| `%ad` | 作者修订日期(可以用 --date= 选项定制格式)
175175
| `%ar` | 作者修订日期,按多久以前的方式显示
176176
| `%cn` | 提交者(committer)的名字
177177
| `%ce` | 提交者的电子邮件地址
@@ -245,7 +245,8 @@ $ git log --since=2.weeks
245245
用 `--author` 选项显示指定作者的提交,用 `--grep` 选项搜索提交说明中的关键字。
246246
(请注意,如果要得到同时满足这两个选项搜索条件的提交,就必须用 `--all-match` 选项。否则,满足任意一个条件的提交都会被匹配出来)
247247

248-
另一个非常有用的筛选选项是 `-S`,可以列出那些添加或移除了某些字符串的提交。比如说,你想找出添加或移除了某一个特定函数的引用的提交,你可以这样使用:
248+
另一个非常有用的筛选选项是 `-S`,可以列出那些添加或移除了某些字符串的提交。
249+
比如说,你想找出添加或移除了某一个特定函数的引用的提交,你可以这样使用:
249250

250251
[source,console]
251252
----

0 commit comments

Comments
 (0)