0
0
Gitdevops~5 mins

How Git stores objects - Quick Revision & Summary

Choose your learning style9 modes available
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?
ATag
BTree
CCommit
DBlob
What does a tree object in Git represent?
AA directory listing
BA tag reference
CA commit message
DA file's content
How does Git uniquely identify each object?
AUsing SHA-1 hash of content
BUsing timestamps
CUsing file names
DUsing commit messages
Which object links to parent commits to form history?
ATree
BCommit
CBlob
DTag
What information does a commit object NOT store?
ASnapshot of files
BAuthor information
CFile contents
DParent commit references
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.