# 使用 Homebrew 安装 git-if

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

## 安装

```sh
sudo av install brew:git-if
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-if
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:git-if
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-if>
- **版本:** 1.3.8
- **来源摘要:** Glulx interpreter that is optimized for speed
- **主页:** <https://ifarchive.org/indexes/if-archive/programming/glulx/interpreters/git/>
- **仓库:** <https://github.com/DavidKinder/Git>
- **上游文档:** <https://ifarchive.org/indexes/if-archive/programming/glulx/interpreters/git/>
- **许可证:** MIT
- **源码归档:** <https://ifarchive.org/if-archive/programming/glulx/interpreters/git/git-138.zip>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-if (cli)
- git-if (别名)

## 构建依赖

- glktermw

## macOS 提供的库

- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.8
- 本地数据: OK
- 上游仓库: https://ifarchive.org/indexes/if-archive/programming/glulx/interpreters/git/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Git, packaged by Homebrew as `git-if`, is an interpreter for the Glulx virtual machine used by interactive-fiction games. The package name avoids confusion with the Git version-control system.

### 项目历史

IF Archive identifies the interpreter as Iain Merrick's Git and describes it as optimized for speed. Archived binaries show releases for PocketPC, MS-DOS, Windows console mode, and source distributions, while the maintained GitHub repository describes the code as originally written by Merrick and later maintained by David Kinder.

### 采用历史

Git's adoption is tied to the Glulx ecosystem rather than general-purpose developer tooling. IFWiki lists it as a Glulx interpreter used by projects such as Gargoyle, Windows Git, and other interactive-fiction front ends, giving it a role as a fast interpreter core for playable story files.

### 使用方式

Practitioners use Git by building it with a Glk library, which provides the user interface layer. The GitHub README notes that Windows Glk support is included for Windows builds, while Unix-style builds depend on an appropriate Glk implementation.

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

The package is a naming oddity: `git-if` installs software named Git that is unrelated to source control. It is useful to package catalogs because it preserves an interactive-fiction interpreter without colliding with the ubiquitous `git` command.

### 时间线

- 2004: IF Archive records PocketPC and MS-DOS builds for early 1.0.x releases.
- 2010: DavidKinder/Git repository created on GitHub.
- 2017: IF Archive records source and Windows console builds for Git 1.3.5.
- 2023: IF Archive records source code for Git 1.3.8.
- 2025: IF Archive records a Windows binary of Git 1.3.8 using Windows Glk.

### Related projects

- Git belongs to the Glulx interpreter family alongside Glulxe and front ends such as Gargoyle. It also depends on the Glk interface layer, with Windows Glk serving the Windows build.

### 来源

- <https://github.com/DavidKinder/Git>
- <https://ifarchive.org/if-archive/programming/glulx/interpreters/git/>
- <https://ifarchive.org/indexes/if-archive/programming/glulx/interpreters/git>
- <https://raw.githubusercontent.com/DavidKinder/Git/master/README.md>
- <https://www.ifwiki.org/Git>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-if
- **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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://pkg.so/zh-hans/archive-compression-tools/) - Matched archive or compression metadata.
- [glulxe](https://pkg.so/zh-hans/brew/glulxe/) - Shares pkgdb curated category or tags: cli, games, glulx, interactive-fiction, interpreter.
- [easyrpg-player](https://pkg.so/zh-hans/brew/easyrpg-player/) - Shares pkgdb curated category or tags: cli, games, interpreter.
- [frotz](https://pkg.so/zh-hans/brew/frotz/) - Shares pkgdb curated category or tags: cli, games, interactive-fiction, interpreter.
- [instead](https://pkg.so/zh-hans/brew/instead/) - Shares pkgdb curated category or tags: cli, games, interactive-fiction, interpreter.
- [fizmo](https://pkg.so/zh-hans/brew/fizmo/) - Shares pkgdb curated category or tags: cli, games, interactive-fiction, interpreter.
- [dmagnetic](https://pkg.so/zh-hans/brew/dmagnetic/) - Shares pkgdb curated category or tags: cli, games, interactive-fiction, interpreter.
- [mame](https://pkg.so/zh-hans/brew/mame/) - Shares pkgdb curated category or tags: cli, games.
- [vice](https://pkg.so/zh-hans/brew/vice/) - Shares pkgdb curated category or tags: cli, games.
- [git-game](https://pkg.so/zh-hans/brew/git-game/) - Package names and metadata indicate a similar tool family. Shared terms: cli, games, git.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
