Git Objects

Git Internals This post is the second part of a series on the internal working of Git. The Git Internals series The .git Directory Git Objects (This post) The entire Git Internals series is available as a talk as well. Feel free to watch the talk instead. 👇 Git Objects Git has two data structures, a mutable index that caches information about the working directory and the next revision to be committed, and an immutable, append-only object database (repository) containing four types of objects...

October 11, 2021 · 11 min · Harsh Kapadia

The .git Directory

Git Internals This post is the first part of a series on the internal working of Git. The Git Internals series The .git Directory (This post) Git Objects The entire Git Internals series is available as a talk as well. Feel free to watch the talk instead. 👇 The .git Directory On executing the git init command in a directory, Git creates a hidden .git directory in that directory. The ....

October 11, 2021 · 7 min · Harsh Kapadia