|
|
|
|
@@ -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.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
{% 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**.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
@@ -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**.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
## 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 %}
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
* {% 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 %}
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
{% 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**.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
@@ -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).
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
## Managing your commit history
|
|
|
|
|
|
|
|
|
|
|