.gitignore Generator
Generate .gitignore files from templates.Runs in this tab.⌘ ↵ runs it
# Select templates above to generate .gitignore
How to use .gitignore Generator
- Tick one or more templates: Node.js, Python, Java, Go, Rust, macOS, Windows, Linux, IDE - VS Code, IDE - JetBrains, and IDE - Vim.
- Read the Output. Each ticked template is a commented section. Untick a box to drop that section.
- Click Copy. There is no search box and no place to paste a stack name.
What the checkboxes write
Tick a template and that section is appended. Untick it and the section goes away. The list is fixed: Node.js, Python, Java, Go, Rust, macOS, Windows, Linux, IDE - VS Code, IDE - JetBrains, and IDE - Vim. There is no search box.
Node.js, macOS, and IDE - VS Code
# Node.js
node_modules/
dist/
build/
.env
.env.local
.env.*.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.npm
.yarn-integrity
# macOS
.DS_Store
.AppleDouble
.LSOverride
._*
.Spotlight-V100
.Trashes
# IDE - VS Code
.vscode/
*.code-workspace
.history/
Python and IDE - JetBrains
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
.venv/
*.egg-info/
dist/
build/
.eggs/
*.egg
.mypy_cache/
.pytest_cache/
# IDE - JetBrains
.idea/
*.iml
*.iws
*.ipr
out/
The same pattern can show up in more than one section. dist/ and build/ are in both Node.js and Python.
Read two lines before you commit the file. The Rust template includes Cargo.lock. Applications usually commit that file. Libraries often ignore it. The Go template includes go.sum, and that file should usually be committed.
gitignore.io has a much longer catalog. This page is a short built-in list you can copy as a starting .gitignore.
Next step
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeQuestions
What gitignore template does this generate?
Is this gitignore.io?
Should I commit Cargo.lock or go.sum?
Comments
More in DevOps & Config
- Dockerfile Generator
- Docker Compose Generator
- Nginx Config Generator
- .editorconfig Generator
- .env File Generator
- GitHub Actions Generator
- README Generator
- License Generator
Comments