跳至主要内容

在 GitHub Desktop 中配置基本设置

你可以访问用于保护隐私、将帐户连接到 GitHub Desktop 以及配置 Git 的设置。

平台导航

  1. 在菜单栏中,选择**GitHub Desktop**,然后单击**设置**。

    Screenshot of the menu bar on a Mac. Under the open "GitHub Desktop" dropdown menu, the cursor hovers over "Settings", which is highlighted in blue.

  2. 要查看或更改设置,请在“设置”窗口中切换窗格。

    Screenshot of the "Settings" window. The left sidebar contains menu options such as "Accounts" and "Integrations".

    你可以从以下选项中进行选择。

    • 选择**帐户**以添加或删除 GitHub 或 GitHub Enterprise 帐户。
    • 选择**集成**以选择外部编辑器或 Shell。
    • 选择**Git**以编辑你的 Git 配置。
    • 选择**外观**以在亮色或暗色主题之间切换。
    • 选择**提示**以在执行破坏性操作之前启用或禁用确认对话框。
    • 选择**高级**以获取更多配置选项。
    • 选择**辅助功能**以配置辅助功能选项。
  1. 使用**文件**菜单,然后单击**选项**。

    Screenshot of the "GitHub Desktop" menu bar on Windows. In the expanded "File" dropdown menu, the "Options" item is highlighted with an orange outline.

  2. 要查看或更改设置,请在“选项”窗口中切换窗格。

    Screenshot of the "Options" window. The left sidebar, with menu options such as "Accounts" and "Integrations", is highlighted with an orange outline.

    你可以从以下选项中进行选择。

    • 选择**帐户**以添加或删除 GitHub 或 GitHub Enterprise 帐户。
    • 选择**集成**以选择外部编辑器或 Shell。
    • 选择**Git**以编辑你的 Git 配置。
    • 选择**外观**以在亮色或暗色主题之间切换。
    • 选择**提示**以在执行破坏性操作之前启用或禁用确认对话框。
    • 选择**高级**以获取更多配置选项。
    • 选择**辅助功能**以配置辅助功能选项。

进一步阅读