docs(git): add base

This commit is contained in:
zjkjzj
2021-03-18 17:06:57 +08:00
parent b37ba05b53
commit 967b4b575d
12 changed files with 764 additions and 1 deletions

30
docs/git/base/git-log.md Normal file
View File

@@ -0,0 +1,30 @@
# [git log]日志查询
使用命令`git log`查询日志,包含了多种快捷查询方式
1. 最简单查询
```
$ git log
```
2. 单行输出
```
$ git log --oneline
```
3. 指定关键字查询
```
$ git log --grep 关键字
```
4. 指定作者查询
```
$ git log --author 作者
```
**注意:上述属性可以组合使用,比如指定关键字和作者并单行输出**