Challenge - 5 Problems
Partial Clone Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Partial clone command output
What is the output when you run this command to start a partial clone of a repository?
Git
git clone --filter=blob:none https://github.com/example/repo.git
Attempts:
2 left
💡 Hint
Partial clone skips downloading blobs initially, so no compressing objects step.
✗ Incorrect
Using --filter=blob:none skips downloading blob objects initially, so the output does not show compressing objects. The clone receives only metadata and references first.
🧠 Conceptual
intermediate1:30remaining
Purpose of partial clone in Git
What is the main purpose of using a partial clone in Git?
Attempts:
2 left
💡 Hint
Think about saving bandwidth and disk space when cloning large repos.
✗ Incorrect
Partial clone allows skipping large file blobs during initial clone, downloading them only when accessed, reducing bandwidth and storage use.
❓ Troubleshoot
advanced2:00remaining
Error when using partial clone filter
You run `git clone --filter=blob:none https://github.com/example/repo.git` but get the error: "fatal: filter 'blob:none' is not recognized". What is the most likely cause?
Attempts:
2 left
💡 Hint
Partial clone filters require a minimum Git version.
✗ Incorrect
Partial clone filters like --filter=blob:none require Git 2.19 or newer. Older versions do not recognize this filter and raise an error.
🔀 Workflow
advanced2:00remaining
Steps to fetch missing blobs after partial clone
After cloning a repository with `--filter=blob:none`, you try to open a file but get an error because the blob is missing. What is the correct Git command to fetch the missing blobs for the current commit?
Attempts:
2 left
💡 Hint
You want to fetch blobs on demand, limiting the amount fetched.
✗ Incorrect
Using `git fetch --filter=blob:limit=1m` fetches missing blobs on demand, allowing access to files without downloading all blobs.
✅ Best Practice
expert2:30remaining
Best practice for using partial clone in CI pipelines
In a CI pipeline for a large repository, what is the best practice when using partial clone to optimize build speed and resource usage?
Attempts:
2 left
💡 Hint
Consider downloading only what is necessary to save time and bandwidth.
✗ Incorrect
Using partial clone with blob filtering and fetching blobs on demand reduces download size and speeds up CI builds by avoiding unnecessary data transfer.