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
Correct Answer:
Verified
Q193: An administrator needs to create a file
Q194: An administrator notices that a long-running script,
Q195: A file server is sharing a directory
Q196: A new user has been added to
Q197: A systems administrator is implementing disk quotas
Q199: A systems administrator downloads an application's source
Q200: Joe, a user, reports that he is
Q201: A systems administrator documents the instructions on
Q202: A junior systems administrator needs to make
Q203: A Linux administrator receives a call from
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents