Beginner
Git & Version Control
Q19 / 100
What is the purpose of a ".gitignore" file?
Correct! Well done.
Incorrect.
The correct answer is A) It lists files and directories that Git should ignore and not track (e.g. build artifacts, dependency folders, log files)
A
Correct Answer
It lists files and directories that Git should ignore and not track (e.g. build artifacts, dependency folders, log files)
Explanation
".gitignore" specifies patterns for files/directories (like "node_modules/" or "*.log") that Git should never track or show as untracked, keeping the repository clean.
Progress
19/100