- create-tree repository #!optional indexprocedure
Creates and returns a new tree object from the state of the given index in the given repository.
If index is not given, a fresh index for the repository is used. This means the resulting tree will be identical to that of the repository's HEAD.
On success, the new value is written immediately to disk.