🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: GitHub: all 10 questions

Quiz: GitHub · Question 6 of 10

What does git clone <url do?

What does git clone <url> do?

  1. A.Creates an empty repository
  2. B.Downloads a full copy of a repository, including its history, and sets it up as origin
  3. C.Uploads your code to GitHub
  4. D.Deletes a remote repository
Answer & explanation

Correct answer: Downloads a full copy of a repository, including its history, and sets it up as origin

A clone has the complete history, not just the latest files.

Can you get the rest right without peeking?

Take the timed Quiz: GitHub quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →