# 使用 Homebrew, Nix 安装 gitnr

查看 gitnr 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitnr
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:gitnr
- **软件包管理器:** Homebrew
- **版本:** 0.3.0
- **来源摘要:** Create .gitignore using templates from TopTal, GitHub or your own collection
- **主页:** <https://github.com/reemus-dev/gitnr>
- **仓库:** <https://github.com/reemus-dev/gitnr>
- **最后更新:** 2026-06-22T14:03:33-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitnr (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.3.0
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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)


## 来源

- 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
