mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 00:42:45 +00:00
Update cheatsheets
This commit is contained in:
21
git-commit-graph
Normal file
21
git-commit-graph
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user