CompTIACompTIA
XK0-005 · Question #238
XK0-005 Question #238: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #238. The question stem and answer options stay visible for context.
Scripting, Containers, and Automation
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
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#Version Control#.gitignore#File Exclusion