Gitignore Purpose
Multiple Choice Easy
Question
What does .gitignore do?
Hint
gitignore prevents tracking unwanted files.
Explanation
.gitignore lists file patterns that Git should ignore (not track). Common entries: node_modules/, *.log, .env, build/. This prevents accidentally committing dependencies, secrets, or build artifacts. The file is placed in the repository root. Patterns can be negated with ! to un-ignore a previously ignored file.
Related Resources
Related Lessons
- Gitignore
Learn .gitignore.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.