Git · Middle · Question 29 of 75

What does a shallow clone (git clone --depth 1) give you?

Explanation

CI rarely needs full history. But commands that need history (blame, merge-base for diffs, git describe) may need git fetch --unshallow or a deeper fetch.

Further reading

Problem with a question

Git · Middle · question 29

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz