doc: Update git.md (#447)

This commit is contained in:
lewis1573 2022-11-14 15:29:59 +08:00 committed by GitHub
parent 48d11a5328
commit ac01835d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -964,7 +964,8 @@ git --git-dir='<绝对地址>/.git' describe --tags HEAD # 查看本地版本信
```shell ```shell
git config format.pretty oneline #显示历史记录时,每个提交的信息只显示一行 git config format.pretty oneline #显示历史记录时,每个提交的信息只显示一行
git config color.ui true #彩色的 git 输出 git config color.ui true #彩色的 git 输出
git log #查看最近的提交日志 git log #查看提交日志,从最近的提交开始显示
git log --reverse #查看提交日志,从最远的提交开始显示
git log --pretty=oneline #单行显示提交日志 git log --pretty=oneline #单行显示提交日志
git log --graph --pretty=oneline --abbrev-commit git log --graph --pretty=oneline --abbrev-commit
git log -num #显示第几条log(倒数) git log -num #显示第几条log(倒数)