nerdexam
Microsoft

GH-900 · Question #66

Which of the following best describes cloning a repository?

The correct answer is C. It creates a copy of the repository on your local machine. Cloning a repository in GitHub refers to creating a copy of the repository on your local machine. This allows you to work on the project offline, make changes, and later push those changes back to the remote repository. It does not involve creating a copy on GitHub.com (which…

Introduction to Git and GitHub

Question

Which of the following best describes cloning a repository?

Options

  • AIt creates a copy of the repository on GitHub.com.
  • BIt retrieves code updates from the remote repository.
  • CIt creates a copy of the repository on your local machine.
  • DIt imports your source code into a new repository.

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    92% (36)

Explanation

Cloning a repository in GitHub refers to creating a copy of the repository on your local machine. This allows you to work on the project offline, make changes, and later push those changes back to the remote repository. It does not involve creating a copy on GitHub.com (which would be forking), retrieving updates (which would be pulling), or importing source code into a new repository (which is done differently).

Topics

#Git clone#Local repository#Remote repository#Git basics

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice