CompTIA
XK0-004 · Question #171
XK0-004 Question #171: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-004 to reveal the answer and full explanation for question #171. The question stem and answer options stay visible for context.
Question
An administrator is reviewing updates in the master online Git repository and notices a file named . The file contains passwords and should only be in the administrator's local repository, not the .htaccess online one. Which of the following would prevent this file from appearing online in the future?
Options
- Agit commit -m "File Update" -x .htaccess
- Bsed -i 's/#Preserve Hidden=True/Preserve Hidden=True/g' .git/config
- Cchown nobody:nodoby .htaccess
- Decho ".htaccess" >> .gitignore
Unlock XK0-004 to see the answer
You've previewed enough free XK0-004 questions. Unlock XK0-004 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.