Complete the command to enable sparse checkout in your Git repository.
git config core.[1] trueThe correct Git configuration key to enable sparse checkout is core.sparseCheckout with camelCase. Git config keys are case-sensitive and must be written exactly as core.sparseCheckout.
Complete the command to initialize sparse checkout.
git sparse-checkout [1]The command git sparse-checkout init initializes sparse checkout in the repository. It sets up the necessary configuration and files to start using sparse checkout.
Fix the error in the command to set sparse checkout paths by completing the blank.
echo "[1]" > .git/info/sparse-checkout
When specifying paths in the sparse-checkout file, you should include the trailing slash and leading slash to indicate the directory path correctly. For example, /docs/ means the docs directory at the root.
Fill both blanks to complete the command that updates the working directory to match the sparse checkout settings.
git [1] -u [2]
The command git read-tree -u -m updates the working directory to match the sparse checkout settings. The -u updates the working directory, and -m merges changes.
Fill all three blanks to create a sparse checkout config file that includes the 'src' directory, excludes 'tests', and includes 'README.md'.
/[1]/ ![2]/ [3]
The sparse checkout file uses patterns to include or exclude paths. A leading slash and trailing slash indicate directories. A leading exclamation mark excludes paths. Here, /src/ includes the src directory, !tests/ excludes the tests directory, and README.md includes the README file.