CS FundamentalsEasyWipro · Accenture pattern

Which Git command makes a full local copy of a remote repository, including its history?

  1. A. git init
  2. B. git clone
  3. C. git fetch
  4. D. git branch

Correct answer: B. git clone

git clone <url> copies the remote repository and its whole history and sets up origin. git init creates an empty repository; git fetch needs an existing repository.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic