Complete the command to clone a repository with a depth of 1.
git clone --depth [1] https://github.com/example/repo.gitThe --depth 1 option tells Git to clone only the latest commit, making it a shallow clone.
Complete the command to fetch the last 5 commits from a remote repository.
git clone --depth [1] https://github.com/example/repo.gitUsing --depth 5 clones the repository with the last 5 commits only.
Fix the error in the command to create a shallow clone with depth 3.
git clone --depth [1] https://github.com/example/repo.gitThe correct syntax is --depth 3 without an equals sign. The blank should be just the number 3.
Fill both blanks to create a shallow clone with depth 2 and single branch.
git clone --depth [1] --branch [2] https://github.com/example/repo.git
Use --depth 2 to limit commits and --branch main to clone only the main branch.
Fill both blanks to fetch a shallow clone with depth 4, branch 'develop', and single branch option.
git clone --depth [1] --branch [2] --single-branch https://github.com/example/repo.git
Use --depth 4 for last 4 commits, --branch develop for the develop branch, and no extra argument after --single-branch as it is a flag.