Problem Statement
What is the purpose of a .gitignore file? Give two common patterns.
Explanation
'.gitignore' tells Git which files/paths not to track (e.g., builds, secrets). Common patterns: 'node_modules/' and '*.log'. This keeps history clean and avoids committing noise or sensitive data.
Code Solution
SolutionRead Only
# .gitignore node_modules/ *.log .DS_Store /dist/
Practice Sets
This question appears in the following practice sets:
