GITHUB-FOUNDATIONS practice question 5 of 15
Which of the following best describes cloning a repository?
Full set: 75 questionsThe git clone command makes a full local copy of all files, history, branches, and tags that exist in the remote repository. This enables you to work offline, create new commits locally, and later synchronize changes back to the remote.
A. Forking or creating a new repo on GitHub produces an online copy; cloning copies to the local computer, not GitHub.com.
B. git pull or git fetch retrieves updates; cloning happens only once to obtain an initial local copy.
D. “Importing” initializes a new remote repository with existing code; cloning does not create a new remote, it copies an existing one locally.
1. GitHub Docs – “Cloning a repository,” paragraph 1: “When you clone a repository, you copy the repository from GitHub.com to your local computer.” (docs.github.com/en, 2023)
2. Chacon, S. & Straub, B. “Pro Git,” 2nd ed., Ch. 2.3 “Cloning a Repository,” para 1: “git clone … copy all of the repository’s data onto your local machine.” (Apress, 2014, DOI:10.1007/978-1-4842-0076-62)
3. Stanford Univ. CS198 Git Handout, p. 2: “Clone: make a complete local copy of an existing remote repository so you can work offline and push later.” (Stanford CS198, 2022)
Keep practicing
Take the free GITHUB-FOUNDATIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-FOUNDATIONS practice questions
- Question 1What are the defining features of Git?
- Question 2Which of the following two-factor authentication (2FA) methods can you use to secure a Gi…
- Question 3Which of the following are advantages of saved replies? (Each correct answer presents par…
- Question 4Which of the following can be performed within GitHub Desktop?
- Question 6What should be done to locate an existing action that was provided by a GitHub-approved v…
- Question 7What qualifier finds issues that mention a certain user?
