mirror of
https://github.com/ZJDoc/GitGuide.git
synced 2026-07-18 01:29:59 +08:00
docs(git): add base
This commit is contained in:
30
docs/git/base/git-log.md
Normal file
30
docs/git/base/git-log.md
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
# [git log]日志查询
|
||||
|
||||
使用命令`git log`查询日志,包含了多种快捷查询方式
|
||||
|
||||
1. 最简单查询
|
||||
|
||||
```
|
||||
$ git log
|
||||
```
|
||||
|
||||
2. 单行输出
|
||||
|
||||
```
|
||||
$ git log --oneline
|
||||
```
|
||||
|
||||
3. 指定关键字查询
|
||||
|
||||
```
|
||||
$ git log --grep 关键字
|
||||
```
|
||||
|
||||
4. 指定作者查询
|
||||
|
||||
```
|
||||
$ git log --author 作者
|
||||
```
|
||||
|
||||
**注意:上述属性可以组合使用,比如指定关键字和作者并单行输出**
|
||||
Reference in New Issue
Block a user