# GitHub Desktop

用于查看更改、提交、创建分支以及与 GitHub 协作的图形化 Git 客户端。

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

- **最新版本**: `3.7.0-f13859b6`
- **开发者**: GitHub, Inc. and contributors
- **主页**: <https://desktop.github.com/>
- **分类**: [开发工具](https://opennavo.com/zh/categories/developer-tools)
- **安装**: `brew install --cask github`
- **近 30 天安装**: 6,991
- **Homebrew**: 可以安装，应用会自行更新
- **下载地址**: <https://desktop.githubusercontent.com/releases/3.7.0-f13859b6/GitHubDesktop-arm64.zip>
- **SHA-256**: `cc41c3cfdae2eaa332ef6547f82c6e672b5a11b0bf637aada2bf2796921eb1a5`
- **附带命令**: github

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

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "GitHub Desktop.app"
      ],
      "target": "/Applications/GitHub Desktop.app"
    },
    "phase": "install",
    "sources": [
      "GitHub Desktop.app"
    ],
    "target": "/Applications/GitHub Desktop.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/GitHub Desktop.app/Contents/Resources/app/static/github.sh",
        {
          "target": "github"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/github"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/GitHub Desktop.app/Contents/Resources/app/static/github.sh"
    ],
    "target": "$HOMEBREW_PREFIX/bin/github",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "rmdir": "~/.config/git",
          "trash": [
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.GitHubClient.sfl*",
            "~/Library/Application Support/com.github.GitHubClient",
            "~/Library/Application Support/com.github.GitHubClient.ShipIt",
            "~/Library/Application Support/GitHub Desktop",
            "~/Library/Application Support/ShipIt_stderr.log",
            "~/Library/Application Support/ShipIt_stdout.log",
            "~/Library/Caches/com.github.GitHubClient",
            "~/Library/Caches/com.github.GitHubClient.ShipIt",
            "~/Library/HTTPStorages/com.github.GitHubClient",
            "~/Library/Logs/GitHub Desktop",
            "~/Library/Preferences/ByHost/com.github.GitHubClient.ShipIt.*.plist",
            "~/Library/Preferences/com.github.GitHubClient.helper.plist",
            "~/Library/Preferences/com.github.GitHubClient.plist",
            "~/Library/Saved Application State/com.github.GitHubClient.savedState"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

GitHub Desktop 是一款图形化 Git 客户端，适合希望查看更改、创建提交和处理分支，而无需在终端中执行每项操作的开发者和协作者。它可与 GitHub 和 GitHub Enterprise 集成，同时也支持本地 Git 仓库工作流。

### 功能
- 在提交前查看更改的文件以及文本或受支持的图像差异。
- 创建提交并检查仓库历史。
- 创建和切换分支，并管理受支持的合并或变基工作流。
- 使用适当的远程访问权限获取、拉取和推送仓库更改。
- 连接 GitHub 协作工作流，并在受支持的编辑器中打开项目。

### 安装和配置
使用 `brew install --cask github` 安装 Mac 应用，或下载适用于 Apple Silicon 或 Intel 的官方归档文件，并将 GitHub Desktop.app 移到 Applications。打开应用，配置你的 Git 作者身份，然后添加、创建或克隆仓库。访问需要 GitHub 或 Enterprise 授权的仓库时登录。提交前查看 Changes 视图，并在与远程同步前确认所选分支。

仓库操作可能会更改文件和历史；界面并不能替代你对自己正在编辑哪个仓库和分支的了解。远程访问仍取决于权限和组织身份验证策略。

### 要求、依赖项和平台
官方支持页面和当前 Homebrew cask 要求 macOS 12 或更高版本。目录提供 Mac ARM64 和 Intel 软件包。该 cask 明确与 `github@beta` 冲突，并声明没有额外的 formula 依赖项。选择稳定版或 beta cask。GitHub Desktop 的打包组件与源码开发要求不同；可选的外部编辑器、命令行工具和 Git 钩子可能需要各自安装或环境配置。

在即将到来的 Electron 变更放弃对这些系统的支持之前，版本 3.6.5 限制了 macOS 12 及更早版本上的升级。因此，不应将本目录软件包的最低要求理解为承诺未来版本仍可在 macOS 12 上使用。

官方桌面版支持还包括 Windows 10 64-bit 或更高版本。Linux 构建版本是社区维护的替代方案，在引用的支持矩阵中并非官方支持平台。GitHub 的移动应用是独立产品，而不是此桌面 Git 客户端。所引用的支持页面未确定固定的 RAM 或已安装存储最低要求。

在目录中特定构建的 URL 上，官方 3.6.6 Apple Silicon 归档文件为 304,970,592 字节。这是下载大小，而不是安装后占用空间。官方网站图片展示了 Mac 上的 Changes 视图、选中的文件、代码差异和提交控件；它是产品示例，而不是特定版本的截图。

### 账户、费用和许可证
GitHub Desktop 是免费的，其源代码根据 MIT 许可证发布。分发的产品还受其发布的 EULA 和捆绑声明约束。使用经过身份验证的 GitHub 服务需要 GitHub 账户，而在不购买 GitHub 套餐的情况下也可以管理本地仓库。付费的 GitHub 或 Enterprise 服务、组织访问权限和第三方集成具有单独的条款和权益。

来源：[官方网站](https://desktop.github.com/)、[源代码和 MIT 许可证](https://github.com/desktop/desktop)、[支持的系统](https://docs.github.com/en/desktop/overview/supported-operating-systems-for-github-desktop)、[安装](https://docs.github.com/en/desktop/installing-and-authenticating-to-github-desktop/installing-github-desktop)、[官方发布](https://github.com/desktop/desktop/releases)、[EULA](https://desktop.github.com/eula/)。

## 系统要求

- macOS 13 起 · 应用版本: 3.7.0-f13859b6 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 核查于 2026-11-22
  - <https://desktop.githubusercontent.com/releases/3.7.0-f13859b6/GitHubDesktop-x64.zip>
  - SHA-256: `1e0523e00c07678d792f9dd4771fa7c361abbc05bcaa30130ea17616b17ca22e`
- macOS 13 起 · 应用版本: 3.7.0-f13859b6 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 核查于 2026-11-22
  - <https://desktop.githubusercontent.com/releases/3.7.0-f13859b6/GitHubDesktop-arm64.zip>
  - SHA-256: `cc41c3cfdae2eaa332ef6547f82c6e672b5a11b0bf637aada2bf2796921eb1a5`

## GitHub Desktop 的安全事实

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

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

## 卸载

- `brew uninstall --cask github`

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

### 深度清理（可选）

- `brew uninstall --zap --cask github`

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

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

- 文件和文件夹: `~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.GitHubClient.sfl*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/com.github.GitHubClient` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/com.github.GitHubClient.ShipIt` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/GitHub Desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/ShipIt_stderr.log` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/ShipIt_stdout.log` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/com.github.GitHubClient` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/com.github.GitHubClient.ShipIt` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/com.github.GitHubClient` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Logs/GitHub Desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/ByHost/com.github.GitHubClient.ShipIt.*.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/com.github.GitHubClient.helper.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/com.github.GitHubClient.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Saved Application State/com.github.GitHubClient.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.config/git` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-22；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 资料与来源

- <https://opennavo.com/zh/apps/github>
- <https://opennavo.com/zh/apps/github/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/github.rb> · 核查于 2026-11-22
- <https://formulae.brew.sh/cask/github>
- <https://github.com/desktop/desktop> · 核查于 2026-11-13
