Let’s talk about some of the internals of git and how it stores and tracks objects within the
If you’re unaware of what the
.git directory is, it’s simply a space that git uses to store your repositories data, the directory is created when you run
git init. Information such as binary objects and plain text files for commits and commit data, remote server information and information about branch locations are stored within.
The key concept throughout this entire article is very simple – pretty much every operation you do in git creates objects with a bunch of metadata which point to some more objects with a bunch of metadata and so on so for forth. That’s pretty much it.
Read more at Dev.to