tldr/pages.uk/common/git-commit-graph.md

17 lines
886 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# git commit-graph
> Записує та перевіряє файл графіку комітів Git.
> Більше інформації: <https://git-scm.com/docs/git-commit-graph>.
- Записує файл графіку комітів для спакованих комітів у локальній директорії `.git`:
`git commit-graph write`
- Записує файл графіку комітів, що містить набір усіх досяжних комітів:
`git show-ref --hash | git commit-graph write --stdin-commits`
- Записує файл графіку комітів, що містить усі коміти у поточному файлі графіку комітів разом з тими, до яких можна отримати доступ з `HEAD`:
`git rev-parse {{HEAD}} | git commit-graph write --stdin-commits --append`