A CLI / TUI to generate .gitignore files using templates.
gitnr is a cross-platform CLI utility designed to streamline the creation of .gitignore files using pre-built templates. The tool combines templates from popular collections including GitHub's official gitignore repository and TopTal's collection, allowing developers to quickly generate comprehensive ignore files tailored to their specific technology stack and development environment.
Key features include the ability to use multiple templates simultaneously while automatically filtering out duplicate ignore lines, support for local files and remote URLs as template sources, and an interactive search mode for browsing and selecting templates. The tool supports explicit prefixes for different template sources (gh: for GitHub, tt: for TopTal, etc.) and can automatically detect template sources when prefixes are omitted.
gitnr is particularly valuable for developers who work across multiple projects and want to maintain consistent .gitignore files, those using complex technology stacks that require combining multiple templates, and anyone looking to avoid the repetitive task of manually creating ignore files. The interactive search feature makes it especially useful for exploring available templates and previewing different combinations before committing to a final .gitignore file.
# via Shell script (Linux/Mac)
curl -s https://raw.githubusercontent.com/reemus-dev/gitnr/main/scripts/install.sh | bash -s -- -u
# via Cargo
cargo install gitnr
# via NetBSD
pkgin install gitnr
