Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

26
git-commit-tree Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# git commit-tree
> Low level utility to create commit objects.
> See also: `git commit`.
> More information: <https://git-scm.com/docs/git-commit-tree>.
- Create a commit object with the specified message:
`git commit-tree {{tree}} -m "{{message}}"`
- Create a commit object reading the message from a file (use `-` for `stdin`):
`git commit-tree {{tree}} -F {{path/to/file}}`
- Create a GPG-signed commit object:
`git commit-tree {{tree}} -m "{{message}}" --gpg-sign`
- Create a commit object with the specified parent commit object:
`git commit-tree {{tree}} -m "{{message}}" -p {{parent_commit_sha}}`