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

22 lines
1023 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-tree
> Низькорівнева утиліта для створення об'єктів комітів.
> Дивись також: `git commit`.
> Більше інформації: <https://git-scm.com/docs/git-commit-tree>.
- Створює об'єкт коміту із певним повідомленням:
`git commit-tree {{tree}} -m "{{повідомлення}}"`
- Створює об'єкт коміту читаючи повідомлення з файлу (використовуй `-` для читання зі стандартного введення):
`git commit-tree {{tree}} -F {{шлях/до/файлу}}`
- Створює GPG-підписаний об'єкт коміту:
`git commit-tree {{tree}} -m "{{повідомлення}}" --gpg-sign`
- Створює об'єкт коміту із певним батьківським об'єктом коміту:
`git commit-tree {{tree}} -m "{{повідомлення}}" -p {{sha_батьківськогооміту}}`