Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/02-git-basics/sections/viewing-history.asc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ a11bef0 - Scott Chacon, 6 years ago : first commit
| `%ae` | 作者的电子邮件地址
| `%ad` | 作者修订日期(可以用 --date= 选项定制格式)
| `%ar` | 作者修订日期,按多久以前的方式显示
| `%cn` | 提交者(committer)的名字
| `%cn` | 提交者committer的名字
| `%ce` | 提交者的电子邮件地址
| `%cd` | 提交日期
| `%cr` | 提交日期,按多久以前的方式显示
Expand Down Expand Up @@ -253,7 +253,7 @@ $ git log --since=2.weeks
$ git log -Sfunction_name
----

最后一个很实用的 `git log` 选项是路径(path)
最后一个很实用的 `git log` 选项是路径path
如果只关心某些文件或者目录的历史提交,可以在 git log 选项的最后指定它们的路径。
因为是放在最后位置上的选项,所以用两个短划线(--)隔开之前的选项和后面限定的路径名。

Expand Down