# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gitnr>
- **版本:** 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>
- **上游文档:** <https://github.com/reemus-dev/gitnr#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/reemus-dev/gitnr/archive/refs/tags/v0.3.0.tar.gz>
- **最后更新:** 2026-06-22T14:03:33-07:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- gitnr (cli)
- gitnr (别名)

## 依赖

- openssl@3

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.3.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/reemus-dev/gitnr
- 检测到的最新版本: v0.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gitnr
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [gource](https://www.automicvault.com/zh-hans/pkg/brew/gource/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [grokmirror](https://www.automicvault.com/zh-hans/pkg/brew/grokmirror/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [karn](https://www.automicvault.com/zh-hans/pkg/brew/karn/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [lucky-commit](https://www.automicvault.com/zh-hans/pkg/brew/lucky-commit/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [ugit](https://www.automicvault.com/zh-hans/pkg/brew/ugit/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [aicommit](https://www.automicvault.com/zh-hans/pkg/brew/aicommit/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommit2](https://www.automicvault.com/zh-hans/pkg/brew/aicommit2/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommits](https://www.automicvault.com/zh-hans/pkg/brew/aicommits/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [dura](https://www.automicvault.com/zh-hans/pkg/brew/dura/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-trim](https://www.automicvault.com/zh-hans/pkg/brew/git-trim/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-series](https://www.automicvault.com/zh-hans/pkg/brew/git-series/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/gitnr.yml](https://github.com/automic-vault/db/blob/main/combined/gitnr.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
