Git Internals - The BLOB

Опубликовано: 22 Ноябрь 2025
на канале: A shot of code
1,923
71

Ever wondered how Git stores your files internally? well in this tutorial we look at the internals of the .git folder to see exactly what goes on under the hood when you perform a git add. The Blob that gets created resides in the objects folder with the hidden .git folder and is named using the Hash of its contents. We can look at the details of the file using git cat-file to see its type and contents. The first 2 digits of the blob hash are used to create a folder and the blob saved within this folder is named using the remaining characters of the hash. This way Git does not end up with one directory containing thousands of files which can be problematic.