Advanced Git & Version Control
Q82 / 100

What is the difference between Git's "object database" and the "index" (staging area) at a low level?

Correct! Well done.

Incorrect.

The correct answer is A) The object database (.git/objects) is a content-addressable store of all blobs, trees, commits, and tags ever created, forming permanent history, while the index (.git/index) is a single file representing the next commit's planned tree

A

Correct Answer

The object database (.git/objects) is a content-addressable store of all blobs, trees, commits, and tags ever created, forming permanent history, while the index (.git/index) is a single file representing the next commit's planned tree

Explanation

Understanding this distinction clarifies operations like "git add" (updates the index to match a working directory file's blob) and "git commit" (creates a new tree/commit from the index's current state) — files in the object database are immutable once written.

Progress
82/100