XK0-005 · Question #748
XK0-005 Question #748: Real Exam Question with Answer & Explanation
The correct answer is C: .gitignore. {"question_number": 5, "correct_answer": "C", "explanation": ".gitignore is correct. It is a plain text file in the repository root (or subdirectories) that lists file patterns Git should ignore and never include in commits or pushes. By adding configuration file names or pattern
Question
A Linux systems administrator is updating code. After completing the update, the administrator wants to publish the updated code without including the configuration files. Which of the following should the administrator use to accomplish this task?
Options
- Agit clone
- B.git
- C.gitignore
- Dgit fetch
Explanation
{"question_number": 5, "correct_answer": "C", "explanation": ".gitignore is correct. It is a plain text file in the repository root (or subdirectories) that lists file patterns Git should ignore and never include in commits or pushes. By adding configuration file names or patterns to .gitignore, the administrator ensures those files are excluded when publishing updated code. 'git clone' (A) is used to copy a repository, not to filter files. '.git' (B) is the hidden directory that stores Git metadata for the repository itself, not a filtering mechanism. 'git fetch' (D) downloads remote changes and has no role in excluding files from publication.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.