CompTIA Linux+ (XK0-004) — Question 141
A Linux systems administrator is implementing Source Code Management for the web application server configuration files located in /etc/httpd/. Which of the following steps should the administrator perform FIRST?
Answer options
- A. Clone the remote repository using 'git clone'
- B. Create a new repository using 'git init'
- C. Retrieve the remote changes using 'git commit'
- D. Configure the directory for git using 'git config'
Correct answer: D
Explanation
The correct first step is to configure the directory using 'git config', as this sets up the necessary parameters for the repository. Cloning a remote repository or creating a new one cannot occur without proper directory configuration first. Additionally, retrieving changes is not applicable until a repository is established.