mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:22:09 +02:00
git-mktree: add page (#11725)
* add tldr page: git-mktree * git-mktree: minor fix in url * git-mktree: fixed linting errors * Update pages/common/git-mktree.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/common/git-mktree.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages/common/git-mktree.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages/common/git-mktree.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages/common/git-mktree.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * git-mktree: apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * git-mktree: add mnemonic and clarify path placeholder --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
9c9212accd
commit
9483a85e15
1 changed files with 24 additions and 0 deletions
24
pages/common/git-mktree.md
Normal file
24
pages/common/git-mktree.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# git mktree
|
||||
|
||||
> Build a tree object using `ls-tree` formatted text.
|
||||
> More information: <https://git-scm.com/docs/git-mktree>.
|
||||
|
||||
- Build a tree object and verify that each tree entry’s hash identifies an existing object:
|
||||
|
||||
`git mktree`
|
||||
|
||||
- Allow missing objects:
|
||||
|
||||
`git mktree --missing`
|
||||
|
||||
- Read the NUL ([z]ero character) terminated output of the tree object (`ls-tree -z`):
|
||||
|
||||
`git mktree -z`
|
||||
|
||||
- Allow the creation of multiple tree objects:
|
||||
|
||||
`git mktree --batch`
|
||||
|
||||
- Sort and build a tree from `stdin` (non-recursive `git ls-tree` output format is required):
|
||||
|
||||
`git mktree < {{path/to/tree.txt}}`
|
Loading…
Add table
Reference in a new issue