Skip to content

sen-ltd/gitignore-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitignore-gen

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.

Screenshot

Features

  • 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 py for Python, js for Node, rs for Rust, etc.
  • Search: Find templates by keyword
  • Offline-first: All templates are embedded — no network requests

Usage

# 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 ide

Using Aliases

Common 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

docker build -t gitignore-gen .
docker run --rm gitignore-gen python node macos

Tests

pip install pytest
pytest

License

MIT

Links

About

CLI tool to generate .gitignore files from 51 built-in templates with smart merging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors