CompTIACompTIA
XK0-005 · Question #1166
XK0-005 Question #1166: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1166. The question stem and answer options stay visible for context.
Security
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-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 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.
Topics
#Git#.gitignore#Version Control#Sensitive Data Protection