XK0-005 · Question #18
A Linux administrator wants to fetch a Git repository from a remote Git server. Which of the following is the BEST command to perform this task?
The correct answer is B. git clone. The command 'git clone' fetches a full copy of a remote Git repository (including all branches, commits, and history) and creates a local working directory with all the repository contents. It is the standard command for obtaining a repository from a remote server for the first…
Question
A Linux administrator wants to fetch a Git repository from a remote Git server. Which of the following is the BEST command to perform this task?
Options
- Agit checkout
- Bgit clone
- Cgit merge
- Dgit config
How the community answered
(28 responses)- B89% (25)
- C7% (2)
- D4% (1)
Explanation
The command 'git clone' fetches a full copy of a remote Git repository (including all branches, commits, and history) and creates a local working directory with all the repository contents. It is the standard command for obtaining a repository from a remote server for the first time. Option A ('git checkout') switches between branches or restores working tree files - it does not fetch a remote repository. Option C ('git merge') combines changes from one branch into another within an already-cloned repository. Option D ('git config') sets configuration options (like username, email, remote URLs) - it does not download repository content.
Topics
Community Discussion
No community discussion yet for this question.