1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:22:09 +02:00

git-commit-tree: add page (#5113)

* git-commit-tree: add page

* Update pages/common/git-commit-tree.md

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>

* Apply suggestions from code review

Still learning :D

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Update pages/common/git-commit-tree.md

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
This commit is contained in:
bl-ue 2021-01-08 08:55:25 -05:00 committed by GitHub
parent 76db7af9d4
commit bae2dd054f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,21 @@
# 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}}`