mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-05 17:53:42 +02:00
git-commit-graph: add page (#5109)
This commit is contained in:
parent
bd9e5c8630
commit
5a9ba89415
1 changed files with 16 additions and 0 deletions
16
pages/common/git-commit-graph.md
Normal file
16
pages/common/git-commit-graph.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# git commit-graph
|
||||
|
||||
> Write and verify Git commit-graph files.
|
||||
> More information: <https://git-scm.com/docs/git-commit-graph>.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue