Options (1)
-s, --hashbooleanWrite a commit-graph file containing all reachable commits
Example:
git show-ref {{[-s|--hash]}} | git commit-graph write --stdin-commitsExamples (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-commitsWrite 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 --appendmade by @shridhargupta | data from tldr-pages