git-mktree
Build a tree object using ls-tree formatted text. tldr-pages
On several platforms
Several platforms
Build a tree object and verify that each tree entry's hash identifies an existing object
git mktreeIdentifyAllow missing objects
git mktree --missingIdentifyRead the NUL (zero character) terminated output of the tree object (git ls-tree -z)
git mktree -zIdentifyAllow the creation of multiple tree objects
git mktree --batchIdentifySort and build a tree from stdin (non-recursive git ls-tree output format is required)
git <path/to/tree.txt mktreeIdentify