0
0
Gitdevops~10 mins

Sparse checkout for partial repos 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 enable sparse checkout in your Git repository.

Git
git config core.[1] true
Drag options to blanks, or click blank then click option'
AsparseCheckout
Bsparsecheckout
Csparse-checkout
Dsparse_checkout
Attempts:
3 left
💡 Hint
Common Mistakes
Using hyphens ('sparse-checkout').
Using all lowercase without camelCase.
Using underscores ('sparse_checkout').
2fill in blank
medium

Complete the command to initialize sparse checkout.

Git
git sparse-checkout [1]
Drag options to blanks, or click blank then click option'
Asetup
Benable
Cstart
Dinit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable' instead of 'init'.
Using 'start' which is not a valid git sparse-checkout command.
Using 'setup' which is not recognized.
3fill in blank
hard

Fix the error in the command to set sparse checkout paths by completing the blank.

Git
echo "[1]" > .git/info/sparse-checkout
Drag options to blanks, or click blank then click option'
A/docs/
Bdocs
C/docs
Ddocs/
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the leading slash.
Omitting the trailing slash.
Using relative paths without slashes.
4fill in blank
hard

Fill both blanks to complete the command that updates the working directory to match the sparse checkout settings.

Git
git [1] -u [2]
Drag options to blanks, or click blank then click option'
Aread-tree
Bcheckout
C-m
D-f
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'checkout' instead of 'read-tree'.
Using '-f' instead of '-m'.
Omitting flags.
5fill in blank
hard

Fill all three blanks to create a sparse checkout config file that includes the 'src' directory, excludes 'tests', and includes 'README.md'.

Git
/[1]/
![2]/
[3]
Drag options to blanks, or click blank then click option'
Asrc
Btests
CREADME.md
Ddocs
Attempts:
3 left
💡 Hint
Common Mistakes
Not using '!' to exclude tests.
Missing slashes for directories.
Including 'docs' instead of 'README.md'.