Git Write-tree

The git write-tree command creates a tree object in .git/objects from the current state of the staging area.