mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
16 lines
539 B
Markdown
16 lines
539 B
Markdown
# git commit-graph
|
|
|
|
> 生成和验证 Git 提交图文件。
|
|
> 更多信息:<https://git-scm.com/docs/git-commit-graph>.
|
|
|
|
- 为仓库本地 `.git` 目录中的打包提交生成提交图文件:
|
|
|
|
`git commit-graph write`
|
|
|
|
- 生成包含所有可达提交的提交图文件:
|
|
|
|
`git show-ref --hash | git commit-graph write --stdin-commits`
|
|
|
|
- 生成包含当前提交图文件中所有提交以及从 `HEAD` 可达提交的提交图文件(追加模式):
|
|
|
|
`git rev-parse {{HEAD}} | git commit-graph write --stdin-commits --append`
|