From 5a9ba89415174e6b73a2584992ea92ebbdc2ffe8 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Sun, 17 Jan 2021 13:01:21 -0500 Subject: [PATCH] git-commit-graph: add page (#5109) --- pages/common/git-commit-graph.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/git-commit-graph.md diff --git a/pages/common/git-commit-graph.md b/pages/common/git-commit-graph.md new file mode 100644 index 000000000..ebaeb66b3 --- /dev/null +++ b/pages/common/git-commit-graph.md @@ -0,0 +1,16 @@ +# git commit-graph + +> Write and verify Git commit-graph files. +> More information: . + +- Write a commit-graph file for the packed commits in the repository's local `.git` directory: + +`git commit-graph write` + +- Write a commit-graph file containing all reachable commits: + +`git show-ref --hash | git commit-graph write --stdin-commits` + +- Write a commit-graph file containing all commits in the current commit-graph file along with those reachable from `HEAD`: + +`git rev-parse {{HEAD}} | git commit-graph write --stdin-commits --append`