CompTIA
XK0-004 · Question #238
XK0-004 Question #238: Real Exam Question with Answer & Explanation
The correct answer is C: echo .tmp >> .gitignore. See the full explanation below for the reasoning.
Question
A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local .tmp files that are occasionally created by the scripts. Which of the following is the BEST way to accomplish this task?
Options
- Agit rm .tmp
- Bgit add -x .tmp *
- Cecho .tmp >> .gitignore
- Drm -rf .tmp
Community Discussion
No community discussion yet for this question.