Advanced Git & Version Control
Q83 / 100

What is "git gc" (garbage collection), and why might "loose objects" accumulate in a repository?

Correct! Well done.

Incorrect.

The correct answer is A) "git gc" optimizes the repository by compressing loose objects, individual object files created during normal operations like commits, into efficient "packfiles", and removes objects no longer reachable from any reference after a grace period

A

Correct Answer

"git gc" optimizes the repository by compressing loose objects, individual object files created during normal operations like commits, into efficient "packfiles", and removes objects no longer reachable from any reference after a grace period

Explanation

Every new commit, blob, or tree initially creates a "loose object" file; over time these accumulate, and "git gc" (often run automatically) packs them into compact packfiles for storage efficiency and faster access.

Progress
83/100