1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Copilot for Desktop - Commit Message Generation [GA] (#56512)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Sunbrye Ly
2025-07-11 08:36:12 -07:00
committed by GitHub
parent c6615eba96
commit 604e6e4340
4 changed files with 15 additions and 14 deletions

View File

@@ -57,7 +57,7 @@ AI-generated text completion to help you write pull request descriptions quickly
Enhance {% data variables.copilot.copilot_chat_short %} responses by providing contextual details on your preferences, tools, and requirements. See [AUTOTITLE](/copilot/customizing-copilot/about-customizing-github-copilot-chat-responses).
### {% data variables.copilot.copilot_desktop_short %} ({% data variables.release-phases.public_preview %})
### {% data variables.copilot.copilot_desktop_short %}
Automatically generate commit messages and descriptions with {% data variables.copilot.copilot_desktop_short %} based on the changes you make to your project.

View File

@@ -30,7 +30,7 @@ You can configure policies for your enterprise. If no policy is chosen at the en
| ----------- | ------------------------------------------ |
| [{% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}](#copilot-in-githubcom) | least restrictive |
| [{% data variables.copilot.copilot_cli %}](#github-copilot-in-the-cli) | least restrictive |
| [{% data variables.copilot.copilot_desktop_short %} ({% data variables.release-phases.public_preview %})](#copilot-in-github-desktop-public-preview) | least restrictive |
| [{% data variables.copilot.copilot_desktop_short %}](#copilot-in-github-desktop) | least restrictive |
| [{% data variables.copilot.copilot_chat %} in the IDE](#github-copilot-chat-in-the-ide) | least restrictive |
| [Editor preview features](#editor-preview-features) | least restrictive |
| [{% data variables.copilot.copilot_mobile %}](#github-copilot-chat-in-github-mobile) | least restrictive |
@@ -57,7 +57,7 @@ If you enable "{% data variables.product.prodname_copilot_short %} in {% data va
{% data variables.copilot.copilot_cli %} is an extension for {% data variables.product.prodname_cli %} which provides a chat-like interface in the terminal. You can ask {% data variables.product.prodname_copilot %} for command suggestions, or for explanations of commands they run.
### {% data variables.copilot.copilot_desktop_short %} ({% data variables.release-phases.public_preview %})
### {% data variables.copilot.copilot_desktop_short %}
You can generate commit messages and descriptions in {% data variables.product.prodname_desktop %} based on the changes you make to your project.

View File

@@ -33,11 +33,11 @@ Organization owners can set policies to govern how {% data variables.product.pro
* Image support in {% data variables.copilot.copilot_chat_short %} (available in {% data variables.product.prodname_vscode_shortname %} and {% data variables.product.prodname_vs %})
>[!NOTE] This setting only applies to preview features within {% data variables.product.prodname_copilot_short %} and does not control all preview-related settings in {% data variables.product.prodname_vscode_shortname %}.
* {% data variables.copilot.copilot_coding_agent %} ({% data variables.release-phases.public_preview %})
* {% data variables.copilot.copilot_spaces %} (public preview)
* {% data variables.copilot.copilot_spaces %} ({% data variables.release-phases.public_preview %})
* MCP servers on {% data variables.product.prodname_dotcom_the_website %} ({% data variables.release-phases.public_preview %})
* {% data variables.copilot.copilot_mobile_short %}
* {% data variables.copilot.copilot_cli_short %} and {% data variables.product.prodname_windows_terminal %}
* {% data variables.copilot.copilot_desktop_short %} ({% data variables.release-phases.public_preview %})
* {% data variables.copilot.copilot_desktop_short %}
* Suggestions matching public code
* Access to alternative models for {% data variables.product.prodname_copilot_short %}
* Anthropic {% data variables.copilot.copilot_claude %} in {% data variables.product.prodname_copilot_short %}
@@ -65,7 +65,7 @@ If an organization member is assigned a seat by multiple organizations with diff
For example, to enable or disable suggestion matching, in the "Suggestions matching public code" dropdown, select **Allowed** or **Blocked**.
1. If your organization has a {% data variables.copilot.copilot_business_short %}{% ifversion ghec %} or {% data variables.copilot.copilot_enterprise_short %}{% endif %} plan and you enable "{% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}", two additional options are displayed:
1. If your organization has a {% data variables.copilot.copilot_business_short %}{% ifversion ghec %} or {% data variables.copilot.copilot_enterprise_short %}{% endif %} plan and you enable "{% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}," two additional options are displayed:
{% data reusables.copilot.policies-for-dotcom %}

View File

@@ -24,7 +24,7 @@ Repository administrators can enable rulesets for a branch to enforce specific c
1. [Create a new branch](/desktop/making-changes-in-a-branch/managing-branches-in-github-desktop), or select an existing branch by clicking **{% octicon "git-branch" aria-hidden="true" aria-label="git-branch" %} Current Branch** on the toolbar and selecting the branch from the list.
![Screenshot of the "Current Branch" dropdown view. Under "Recent Branches", a branch, named "my-feature", is highlighted with an orange outline.](/assets/images/help/desktop/select-branch-from-dropdown.png)
![Screenshot of the "Current Branch" dropdown view. Under "Recent Branches," a branch, named "my-feature," is highlighted with an orange outline.](/assets/images/help/desktop/select-branch-from-dropdown.png)
{% data reusables.desktop.make-changes %}
## Choosing how to display diffs
@@ -32,7 +32,7 @@ Repository administrators can enable rulesets for a branch to enforce specific c
You can change the way diffs are displayed in {% data variables.product.prodname_desktop %} to suit your reviewing needs.
To change how you view diffs, in the top-right corner of the diff view, click {% octicon "gear" aria-label="The Gear icon" %}.
* To change how the entire diff is displayed, under "Diff display", select **Unified** or **Split**. The Unified view shows changes linearly, while the Split view shows old content on the left side and new content on the right side.
* To change how the entire diff is displayed, under "Diff display," select **Unified** or **Split**. The Unified view shows changes linearly, while the Split view shows old content on the left side and new content on the right side.
* To hide whitespace changes so you can focus on more substantive changes, select **Hide Whitespace Changes**.
![Screenshot of the diff view of a file. A gear icon is outlined in orange and expanded to display "Whitespace" and "Diff display" settings.](/assets/images/help/desktop/diff-selection.png)
@@ -43,7 +43,7 @@ If you need to see more of the file than {% data variables.product.prodname_desk
* To see the next few lines above or below the highlighted changes, click the arrow above or below the line numbers.
* To see the entire file, right-click in the diff view and click **Expand Whole File**.
![Screenshot of the diff view of a "README" file. Over a green "addition" line, in a context menu, the cursor hovers over "Expand Whole File".](/assets/images/help/desktop/expand-diff-view.png)
![Screenshot of the diff view of a "README" file. Over a green "addition" line, in a context menu, the cursor hovers over "Expand Whole File."](/assets/images/help/desktop/expand-diff-view.png)
## Selecting changes to include in a commit
@@ -57,7 +57,7 @@ In the "Changes" tab in the left sidebar:
* To access stashed changes, click **Stashed Changes**.
* {% data reusables.desktop.commit-all-desc %}
![Screenshot of the "Changes" tab. Above the list of changed files, next to the text "3 changed files", a selected checkbox is outlined in orange.](/assets/images/help/desktop/commit-all.png)
![Screenshot of the "Changes" tab. Above the list of changed files, next to the text "3 changed files," a selected checkbox is outlined in orange.](/assets/images/help/desktop/commit-all.png)
* {% data reusables.desktop.commit-some-desc %}
### Creating a partial commit
@@ -79,7 +79,7 @@ Discarded changes are saved in a dated file in the Trash. You can recover discar
{% data reusables.desktop.select-discard-files %}
{% data reusables.desktop.click-discard-files %}
![Screenshot of the "Changes" tab. Two selected files are highlighted in blue. In a context menu, the cursor hovers over "Discard 2 Selected Changes".](/assets/images/help/desktop/discard-changes-mac.png)
![Screenshot of the "Changes" tab. Two selected files are highlighted in blue. In a context menu, the cursor hovers over "Discard 2 Selected Changes."](/assets/images/help/desktop/discard-changes-mac.png)
{% data reusables.desktop.confirm-discard-files %}
### Discarding changes in one or more lines
@@ -91,7 +91,7 @@ You can discard one or more changed lines that are uncommitted.
To discard one added line, in the list of changed lines, right-click the line number of the line you want to discard, then select **Discard Added Line**.
![Screenshot of the diff view of a file. In a context menu, a cursor hovers over "Discard Added Line", highlighted in blue.](/assets/images/help/desktop/discard-single-line.png)
![Screenshot of the diff view of a file. In a context menu, a cursor hovers over "Discard Added Line," highlighted in blue.](/assets/images/help/desktop/discard-single-line.png)
To discard a group of changed lines, right-click the vertical bar to the right of the line numbers for the lines you want to discard, then select **Discard added lines**.
@@ -105,7 +105,8 @@ Once you're satisfied with the changes you've chosen to include in your commit,
> {% data reusables.desktop.tags-push-with-commits %} For more information, see [AUTOTITLE](/desktop/managing-commits/managing-tags-in-github-desktop).
1. At the bottom of the list of changes, next to your profile picture, describe your commit:
* If you have access to {% data variables.product.prodname_copilot %} and you are using [{% data variables.product.prodname_desktop %} beta](https://desktop.github.com/beta/), you can automatically create a commit message and details based on the changes you made. Click {% octicon "copilot" aria-label="Generate commit message with Copilot" %}.
* If you have access to {% data variables.product.prodname_copilot %}, you can automatically create a commit message and details based on the changes you made. Click {% octicon "copilot" aria-label="Generate commit message with Copilot" %}.
* If you want to regenerate a different commit message, click {% octicon "copilot" aria-label="Regenerate commit message with Copilot" %} again to generate a new suggestion.
* Alternatively, type your own short, meaningful commit message in the Summary field. You can also add more information about the change in the Description field.
![Screenshot of the "Changes" tab. The "Summary" field and "Generate commit message with Copilot" button are outlined in orange.](/assets/images/help/desktop/create-commit-details.png)
@@ -125,7 +126,7 @@ Once you're satisfied with the changes you've chosen to include in your commit,
If a pull request has not been created for the current branch, {% data variables.product.prodname_desktop %} will give you the option to preview the changes and create one. For more information, see [AUTOTITLE](/desktop/working-with-your-remote-repository-on-github-or-github-enterprise/creating-an-issue-or-pull-request-from-github-desktop).
![Screenshot of the "No local changes" view. A button, labeled "Preview Pull Request", is highlighted with an orange outline.](/assets/images/help/desktop/mac-preview-pull-request.png)
![Screenshot of the "No local changes" view. A button, labeled "Preview Pull Request," is highlighted with an orange outline.](/assets/images/help/desktop/mac-preview-pull-request.png)
## Managing your commit history