Use the REST API to interact with tree objects in your Git database on {% data variables.product.github %}.
fpt
ghec
ghes
*
*
*
API
rest
About Git trees
A Git tree object creates the hierarchy between files in a Git repository. You can use the Git tree object to create the relationship between directories and the files they contain. These endpoints allow you to read and write tree objects to your Git database on {% data variables.product.github %}.