跳至主要内容

在 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 配置。
    • 选择 **外观** 以在浅色或深色主题之间切换。
    • 选择 **提示** 以启用或禁用在执行破坏性操作之前的确认对话框。
    • 选择 **高级** 以获取更多配置选项。
    • 选择 **辅助功能** 来配置辅助功能选项。

进一步阅读