# Install gitnr with Homebrew, Nix

Create .gitignore using templates from TopTal, GitHub or your own collection. Version 0.3.0 via Homebrew; verified 2026-06-22. Also installable with nix: nix profile install nixpkgs#gitnr.

## Install

```sh
sudo av install brew:gitnr
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gitnr
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gitnr
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gi/gitnr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:gitnr
- **Package manager:** Homebrew
- **Version:** 0.3.0
- **Source summary:** Create .gitignore using templates from TopTal, GitHub or your own collection
- **Homepage:** <https://github.com/reemus-dev/gitnr>
- **Repository:** <https://github.com/reemus-dev/gitnr>
- **Last updated:** 2026-06-22T14:03:33-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- gitnr (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.3.0
## Project history and usage

gitnr is a Rust CLI for generating `.gitignore` files from reusable templates. It combines templates from the GitHub and TopTal collections with local files, remote URLs, or files from public GitHub repositories.

### Project history

The project appeared on GitHub in August 2023 and published its v0.1.0 release the same day. Its README explains the origin plainly: the author wanted consistent `.gitignore` generation, modular template composition, and a small Rust learning project.

### Adoption history

gitnr targets the common bootstrapping moment when a developer starts a repository and wants a sensible ignore file without manually copying template snippets. Its documented installation paths include Homebrew, Cargo, cargo-binstall, NetBSD packages, platform install scripts, and binary releases.

### How it is used

Practitioners use `gitnr create` with template names such as `gh:Rust` or `tt:clion+all`, optionally combining several templates into one generated ignore file. The `gitnr search` mode provides an interactive browser for previewing and selecting templates.

### Why package nerds care

For package catalogs, gitnr is notable as a thin wrapper around shared ignore-template ecosystems rather than a new ignore syntax. Its value is packaging the template lookup, duplicate filtering, caching, and cross-platform install story into one small executable.

### Timeline

- 2023: Repository created on GitHub.
- 2023: v0.1.0 release published.
- 2023: gitnr crate published on crates.io.

### Related projects

- gitnr depends on the GitHub gitignore template collection and the TopTal gitignore collection as source material for generated files.

### Sources

- <https://api.github.com/repos/reemus-dev/gitnr>
- <https://api.github.com/repos/reemus-dev/gitnr/releases>
- <https://crates.io/api/v1/crates/gitnr>
- <https://github.com/reemus-dev/gitnr>
- <https://raw.githubusercontent.com/reemus-dev/gitnr/main/readme.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Nix - gitnr: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gitnr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/gitnr.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gitnr.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
