# 使用 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
- **版本:** 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>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-if (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
