Recall & Review
beginner
What is a packfile in Git?
A packfile is a compressed collection of Git objects stored together to save space and improve performance when transferring data.
Click to reveal answer
beginner
Why does Git use compression in packfiles?
Git compresses objects in packfiles to reduce disk space and speed up network transfers by sending less data.
Click to reveal answer
intermediate
What command creates packfiles in Git?
The command 'git gc' (garbage collect) creates packfiles by compressing loose objects into packfiles.
Click to reveal answer
intermediate
How does Git store similar objects efficiently in packfiles?
Git uses delta compression to store only differences between similar objects inside packfiles, saving space.
Click to reveal answer
beginner
What is the benefit of packfiles during Git clone or fetch?
Packfiles allow Git to transfer many objects in a single compressed file, making clone and fetch faster and using less bandwidth.
Click to reveal answer
What does a Git packfile mainly contain?
✗ Incorrect
Packfiles contain compressed Git objects like commits, trees, and blobs.
Which Git command is used to compress loose objects into packfiles?
✗ Incorrect
'git gc' runs garbage collection and creates packfiles by compressing loose objects.
What technique does Git use inside packfiles to save space for similar objects?
✗ Incorrect
Delta compression stores only differences between similar objects to save space.
Why are packfiles important when cloning a Git repository?
✗ Incorrect
Packfiles compress many objects into one file, making cloning faster and using less bandwidth.
What happens if Git did not use packfiles?
✗ Incorrect
Without packfiles, Git would store many loose objects, using more space and slowing transfers.
Explain what a Git packfile is and why Git uses compression in packfiles.
Think about how Git stores many objects efficiently.
You got /4 concepts.
Describe how Git uses delta compression inside packfiles and its benefits.
Consider how similar files can be stored using less data.
You got /4 concepts.