Git · Junior · Question 13 of 75

What does git clone <url> do?

Explanation

Clone downloads all commits, sets up a remote called origin and checks out the default branch. Shallow clones (--depth) are an option when history isn't needed.

Further reading

Problem with a question

Git · Junior · question 13

Test yourself

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

Take this quiz