Beginner Git & Version Control
Q36 / 100

What is the purpose of "git clone --depth 1"?

Correct! Well done.

Incorrect.

The correct answer is A) It clones only the most recent commit (a "shallow" clone), reducing download size and time for large repositories

A

Correct Answer

It clones only the most recent commit (a "shallow" clone), reducing download size and time for large repositories

Explanation

A shallow clone (--depth 1) downloads only the latest snapshot of the repository without its full history, which is useful when full history isn't needed, such as in CI pipelines.

Progress
36/100