commands.sh

git commit-graph

all

Write and verify Git commit-graph files.

More info →

Options (1)

-s, --hashboolean

Write a commit-graph file containing all reachable commits

Example: git show-ref {{[-s|--hash]}} | git commit-graph write --stdin-commits

Examples (3)

Write a commit-graph file for the packed commits in the repository's local `.git` directory

Write a commit-graph file containing all reachable commits

git show-ref [-s|--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
made by @shridhargupta | data from tldr-pages