# GitX

面向 macOS 的原生 Git 图形客户端；安装应用时也会一并安装 \`gitx\` 命令行工具。

> 这是 OpenNavo 上 GitX 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/gitx>

- **最新版本**: `1.8`
- **开发者**: Farhan Ahmed
- **主页**: <https://github.com/gitx/gitx>
- **分类**: [开发工具](https://opennavo.com/zh/categories/developer-tools)
- **安装**: `brew install --cask gitx`
- **近 30 天安装**: 67
- **Homebrew**: 可以安装，由 Homebrew 更新
- **下载地址**: <https://github.com/gitx/gitx/releases/download/1.8/GitX-arm64.dmg>
- **SHA-256**: `778d0e031f9b971831d58b10e3c4896fc2798ac5d530851a9066ba27713b46a6`
- **附带命令**: gitx

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "GitX.app"
      ],
      "target": "/Applications/GitX.app"
    },
    "phase": "install",
    "sources": [
      "GitX.app"
    ],
    "target": "/Applications/GitX.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/GitX.app/Contents/Resources/gitx"
      ],
      "target": "$HOMEBREW_PREFIX/bin/gitx"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/GitX.app/Contents/Resources/gitx"
    ],
    "target": "$HOMEBREW_PREFIX/bin/gitx",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/net.phere.gitx.sfl*",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/nl.frim.gitx.sfl*",
            "~/Library/Caches/nl.frim.GitX",
            "~/Library/Preferences/net.phere.GitX.plist",
            "~/Library/Preferences/nl.frim.GitX.plist",
            "~/Library/Saved Application State/nl.frim.GitX.savedState"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

GitX 是 macOS 上用于 Git 版本控制系统的原生图形客户端。Homebrew cask 会安装 GitX 应用，并使其自带的 `gitx` 命令行工具可从 Homebrew 前缀目录下的 `bin` 目录调用。它是 Git 图形客户端，而不是通用应用套件。

- 提供用于处理 Git 仓库的图形界面。
- 将 `GitX.app` 安装到 `/Applications`。
- 将自带的 `gitx` 可执行文件链接到 Homebrew 前缀目录下的 `bin`，以便从命令行调用。
- 提供适用于 Apple Silicon（`arm64`）和 Intel（`x86_64`）Mac 的构建版本。

使用 `brew install --cask gitx` 安装。此 cask 要求 macOS 13 或更高版本。安装后，可从“应用程序”打开 GitX 使用图形客户端，或在命令行运行 `gitx` 使用随附的命令行工具。此 cask 同时包含应用和可执行文件。

[GitX 项目](https://github.com/gitx/gitx) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/g/gitx.rb)

## 系统要求

- macOS 13 起 · 应用版本: 1.8 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 核查于 2026-11-29
  - <https://github.com/gitx/gitx/releases/download/1.8/GitX-x86_64.dmg>
  - SHA-256: `8f1a37eecbe005c6c41d8eb9127b62a5d303ff7ac050abb6d7b8dccaa3d3eade`
- macOS 13 起 · 应用版本: 1.8 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 核查于 2026-11-29
  - <https://github.com/gitx/gitx/releases/download/1.8/GitX-arm64.dmg>
  - SHA-256: `778d0e031f9b971831d58b10e3c4896fc2798ac5d530851a9066ba27713b46a6`

## 价格

- 免费 — 官网: <https://gitx.github.io/> · <https://gitx.github.io/> · 核查于 2026-10-25

## GitX 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/gitx/gitx> · 是否开源: 是 — <https://github.com/gitx/gitx> · 核查于 2026-11-14

## 卸载

- `brew uninstall --cask gitx`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask gitx`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/net.phere.gitx.sfl*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-29；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/nl.frim.gitx.sfl*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-29；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/nl.frim.GitX` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-29；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/net.phere.GitX.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-29；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/nl.frim.GitX.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-29；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Saved Application State/nl.frim.GitX.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-29；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 1.8 (2026-10-25)

GitX 1.8 为暂存的新增内容显示实际差异，在主仓库移动后提供 worktree 链接修复，并修复变基后的分支选择及拖放仓库文件夹到 Dock 图标的问题。

GitX 1.8 为暂存的新增内容显示实际差异，在主仓库移动后提供 worktree 链接修复，并修复变基后的分支选择及拖放仓库文件夹到 Dock 图标的问题。

Source: https://github.com/gitx/gitx/releases/tag/1.8

## 资料与来源

- <https://opennavo.com/zh/apps/gitx>
- <https://opennavo.com/zh/apps/gitx/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gitx.rb> · 核查于 2026-11-29
- <https://formulae.brew.sh/cask/gitx>
- <https://gitx.github.io/> · 核查于 2026-10-25
- <https://github.com/gitx/gitx> · 核查于 2026-11-14
