Which of the following would prevent this file from appearing online in the future?

An administrator is reviewing updates in the master online Git repository and notices a file named .htaccess. The file contains passwords and should only be in the administrator’s local repository, not the online one. Which of the following would prevent this file from appearing online in the future?
A. git commit -m "File Update" -x .htaccess
B. sed -i ‘s/#Preserve Hidden=True/Preserve Hidden=True/g’ .git/config
C. chown nobody:nodoby .htaccess
D. echo ".htaccess" >> .gitignore

comptia-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.