Why every repository needs a .gitignore
Why it matters
Without .gitignore, build output, editor files and local secrets end up committed sooner or later.
How to fix it
What to do: Create a
.gitignore in the project root.# Python
__pycache__/
*.pyc
*.pyo
.venv/
venv/
.pytest_cache/
*.egg-info/
# Env / Secrets
.env
.env.local
# IDE
.idea/
.vscode/
# OS
.DS_Store
Thumbs.db
Does your repository pass this check?
Free for public GitHub repositories, no account needed. 50+ DevOps and security checks in about ten seconds.