CompTIA Linux+ (XK0-004) — Question 17

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?

Answer options

Correct answer: B

Explanation

The correct command to use for fetching a Git repository from a remote server is 'git clone', as it creates a local copy of the repository. 'git checkout' is used for switching branches, 'git merge' combines changes from different branches, and 'git config' is for setting up configuration options, making them unsuitable for this task.