What is the internal format of a Git tree object?

The format of a tree object: tree [content size]\0[Entries having references to other trees and blobs] The format of each entry having references to other trees and blobs: [mode] [file/folder name]\0[SHA-1 of referencing blob or tree] I wrote a script deflating tree objects. It outputs as follows: tree 192\0 40000 octopus-admin\0 a84943494657751ce187be401d6bf59ef7a2583c 40000 octopus-deployment\0 14f589a30cf4bd0ce2d7103aa7186abe0167427f … Read more