Git

Git under the hood

Materials https://gitready.com/beginner/2009/02/17/how-git-stores-your-data.html https://de.slideshare.net/JeffKunkle/understanding-git Object types in Git Blob Tree Commit Tag <= Skip in this post These objects are stored in .git/objects/. How to read the objects Git objects are compressed. # Get file information $ git ls-files -s {{ my_git-managed_file }} 100644 4be0b2b8b0fd36b8b3c94c46b4af4cfb2558d11c 0 {{ my_git-managed_file }} # Decompress the Git object $ pigz -d < .git/objeccts/4b/e0b2b8b0fd36b8b3c94c46b4af4cfb2558d11c blob 7572my Markdown file!! # Another object (tree) $ git ls-tree HEAD // --- snipp --- // 040000 tree 423d17368f16ff18aac8ee494e27bafef8587afa content $ pigz -d < .