Solved

An Administrator Is Reviewing Updates in the Master Online Git

Question 198

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents