0
0
Gitdevops~10 mins

Partial clone for reduced download in Git - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to start a partial clone with filter blob:none.

Git
git clone --filter [1] https://github.com/example/repo.git
Drag options to blanks, or click blank then click option'
Aall
Btree:0
Cblob:all
Dblob:none
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'all' downloads everything, no reduction.
Using 'tree:0' filters trees, not blobs.
Using 'blob:all' downloads all blobs, no reduction.
2fill in blank
medium

Complete the command to fetch missing blobs after a partial clone.

Git
git fetch origin [1]
Drag options to blanks, or click blank then click option'
A--filter=blob:limit=0
B--no-filter
C--filter=blob:none
D--filter=blob:deepen=1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'blob:none' fetches no blobs.
Using 'blob:limit=0' fetches no blobs.
Using 'blob:deepen=1' is for shallow clones, not partial clones.
3fill in blank
hard

Fix the error in the partial clone command to correctly specify the filter option.

Git
git clone --filter [1] https://github.com/example/repo.git
Drag options to blanks, or click blank then click option'
Ablob:none
Bblob:none --depth=1
Cfilter=blob:none
D--blob:none
Attempts:
3 left
💡 Hint
Common Mistakes
Adding extra dashes '--' before the filter value.
Including 'filter=' inside the blank.
Appending unrelated options inside the blank.
4fill in blank
hard

Fill both blanks to create a partial clone and fetch missing blobs later.

Git
git clone --filter [1] https://github.com/example/repo.git && git fetch origin [2]
Drag options to blanks, or click blank then click option'
Ablob:none
B--filter=blob:none
C--no-filter
Dblob:unshallow
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--filter=' in the first blank.
Using 'no-filter' without '--' in the fetch command.
Mixing up the order of filter options.
5fill in blank
hard

Fill all three blanks to create a partial clone, fetch missing blobs, and check the clone status.

Git
git clone --filter [1] https://github.com/example/repo.git && git fetch origin [2] && git [3]
Drag options to blanks, or click blank then click option'
Ablob:none
B--no-filter
Cstatus
Dlog
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'log' instead of 'status' for the last command.
Omitting '--' in the fetch command.
Using '--filter=' in the clone filter blank.