Recall & Review
beginner
What are the four main types of objects Git stores?
Git stores four main types of objects: blobs (file data), trees (directory listings), commits (snapshots with metadata), and tags (named references).
Click to reveal answer
beginner
How does Git identify each object uniquely?
Git uses a SHA-1 hash of the object's content to uniquely identify it. This hash acts like a fingerprint for the object.
Click to reveal answer
beginner
What is a 'blob' object in Git?
A blob stores the contents of a file but does not store the file name or any metadata.
Click to reveal answer
intermediate
What role do 'tree' objects play in Git?
A tree object represents a directory. It records file names, their modes (permissions), and links to blobs or other trees.
Click to reveal answer
intermediate
How does Git store commit history using objects?
A commit object points to a tree object (snapshot of files), includes metadata like author and message, and links to parent commits to form history.
Click to reveal answer
Which Git object stores the actual content of a file?
✗ Incorrect
The blob object stores the raw content of a file without any metadata.
What does a tree object in Git represent?
✗ Incorrect
Tree objects represent directories by listing files and subdirectories.
How does Git uniquely identify each object?
✗ Incorrect
Git uses the SHA-1 hash of the object's content as a unique identifier.
Which object links to parent commits to form history?
✗ Incorrect
Commit objects link to parent commits to build the commit history.
What information does a commit object NOT store?
✗ Incorrect
Commit objects point to tree objects that store file contents, but do not store file contents themselves.
Explain how Git uses objects to store the state of a project.
Think about how files and folders are saved and linked in Git.
You got /4 concepts.
Describe the difference between a blob and a tree object in Git.
One stores file content, the other organizes files.
You got /3 concepts.