CompTIA Linux+ (XK0-004) — Question 65

A Linux administrator retrieved a repository of files from a Git server using git clone. The administrator wants to see if a configuration file was added to the repository. Which of the following Git arguments should be used to see the recent modifications?

Answer options

Correct answer: B

Explanation

The correct option is B, as the 'git log' command displays the commit history, allowing the administrator to see recent modifications. Options A and D, 'fetch' and 'pull', are used for updating the local repository with changes from the remote but do not show modification history. Option C, 'init', is used to create a new Git repository and is not relevant in this context.