It can store empty directories (actually, trees). It can't do normally because the index maps paths to blobs, an empty directory doesn't have a file to map to a blob and then `git add` will have no effect. Given that normally we write commits from the index content, then normally we won't find an empty tree.
You can run `git commit --allow-empty` with an empty index and the root tree will be the empty tree:
You can run `git commit --allow-empty` with an empty index and the root tree will be the empty tree:
4b825dc is the empty tree. And a funny thing about it is that it is hardcoded in Git, and you can use it without having this object: This is a good reading about that weird object: https://matheustavares.dev/posts/empty-tree