A .gitignore file generator with 50+ built-in templates. Combine multiple templates, deduplicate patterns, and write the result to a file — all offline, with zero dependencies.
- 50+ templates: Node, Python, Rust, Go, Java, PHP, Ruby, Swift, Kotlin, C, C++, Dart, Elixir, Haskell, Scala, R, Julia, Lua, Perl, TeX, Unity, Unreal, Android, Xcode, JetBrains, VSCode, Vim, Emacs, macOS, Windows, Linux, and more
- Smart merging: Combines templates with automatic deduplication and section headers
- Alias support: Use
pyfor Python,jsfor Node,rsfor Rust, etc. - Search: Find templates by keyword
- Offline-first: All templates are embedded — no network requests
# Combine Python + Node.js + macOS templates
python main.py python node macos
# Write to file
python main.py python node --output .gitignore
# Append to existing file
python main.py macos --output .gitignore --append
# List all available templates
python main.py --list
# Search templates by keyword
python main.py --search ideCommon aliases are supported for convenience:
| Alias | Template |
|---|---|
py |
python |
js, nodejs |
node |
ts |
typescript |
rs |
rust |
rb |
ruby |
cs, c# |
csharp |
c++, cxx |
cpp |
idea, intellij |
jetbrains |
code, vs-code |
vscode |
nvim, neovim |
vim |
mac, osx |
macos |
win |
windows |
latex |
tex |
tf |
terraform |
docker build -t gitignore-gen .
docker run --rm gitignore-gen python node macospip install pytest
pytestMIT
