git commit-graph
生成和验证 Git 提交图文件。 更多信息:https://git-scm.com/docs/git-commit-graph。
- 为仓库本地
.git目录中的打包提交生成提交图文件:
git commit-graph write
- 生成包含所有可达提交的提交图文件:
git show-ref | git commit-graph write --stdin-commits
- 生成包含当前提交图文件中所有提交以及从
HEAD可达提交的提交图文件(追加模式):
git rev-parse | git commit-graph write --stdin-commits --append
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
