Skip to content

Commit 39bd312

Browse files
authored
repo sync
2 parents c5266bb + b1ff6c1 commit 39bd312

File tree

8 files changed

+29
-1
lines changed

8 files changed

+29
-1
lines changed
89.2 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Cherry-picking a commit
3+
intro: You can pick a specific commit on one branch and copy the commit to another branch.
4+
versions:
5+
free-pro-team: '*'
6+
---
7+
8+
### About Git cherry-pick
9+
10+
You can cherry-pick a commit on one branch to create a copy of the commit with the same changes on another branch. If you commit changes to the wrong branch or want to make the same changes to another branch, you can cherry-pick the commit to apply the changes to another branch. You can also use cherry-picking to apply specific changes before you are ready to create or merge a pull request. For example, if you commit a bug fix to a feature branch, you can cherry-pick the commit with the bug fix to other branches of your project.
11+
12+
You can also use cherry-picking when collaborating with a team. Some projects incorporate contributions by cherry-picking commits. For more information, see [Distributed Git - Maintaining a Project](https://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project#_rebase_cherry_pick) in the Git documentation.
13+
14+
### Cherry-picking a commit
15+
16+
{% data reusables.desktop.current-branch-menu %}
17+
2. In the list of branches, click the branch that has the commit that you want to cherry-pick.
18+
{% data reusables.desktop.history-tab %}
19+
4. Drag the commit that you want to cherry-pick to the {% octicon "git-branch" aria-label="The branch icon" %} **Current Branch** menu and drop the commit on the branch that you want to copy the commit to.
20+
![Dragging a commit to another branch in the Current Branch menu](/assets/images/help/desktop/cherry-picking.png)
21+
22+
### Further reading
23+
- [git-cherry-pick](https://git-scm.com/docs/git-cherry-pick) in the Git documentation

content/desktop/contributing-and-collaborating-using-github-desktop/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ versions:
2222
{% link_in_list /stashing-changes %}
2323
{% link_in_list /pushing-changes-to-github %}
2424
{% link_in_list /reverting-a-commit %}
25+
{% link_in_list /cherry-picking-a-commit %}
2526
{% link_in_list /managing-tags %}
2627
{% link_in_list /viewing-the-branch-history %}
2728
{% topic_link_in_list /working-with-your-remote-repository-on-github-or-github-enterprise %}

data/glossaries/external.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
working tree is pointing to a new branch.
9292
- term: cherry-picking
9393
description: >-
94-
To choose a subset of changes from a series of changes (typically commits) and record them as a new series of changes on top of a different codebase. In Git, this is performed by the `git cherry-pick` command to extract the change introduced by an existing commit on another branch and to record it based on the tip of the current branch as a new commit.
94+
To choose a subset of changes from a series of changes (typically commits) and record them as a new series of changes on top of a different codebase. In Git, this is performed by the `git cherry-pick` command to extract the change introduced by an existing commit on another branch and to record it based on the tip of the current branch as a new commit. For more information, see [git-cherry-pick](https://git-scm.com/docs/git-cherry-pick) in the Git documentation.
9595
- term: child team
9696
description: >-
9797
Within nested teams, the subteam that inherits the parent team's access

data/release-notes/3-0/0.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ sections:
131131
- Dependency graph fails to parse `setup.py` Python manifest files, resulting in HTTP 500 errors in logs. This, combined with the duplicated logging issue, results in increased root volume utilization.
132132
- A race condition can cause dependency graph database migrations to appear to fail.
133133
- Instances with a custom timezone that were upgraded from an earlier release of GitHub Enterprise Server may have incorrect timestamps in the web UI.
134+
- Old builds of Pages are not cleaned up, which could fill up the user disk (`/data/user/`).
134135

135136
deprecations:
136137
- heading: Deprecation of GitHub Enterprise Server 2.19

data/release-notes/3-0/1.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ sections:
4343
- 'reStructuredText (RST) rendering in the web UI may fail and instead display raw RST markup text.'
4444
- 'Dependency graph fails to parse `yarn.lock` Javascript manifest files, resulting in HTTP 500 errors in logs.'
4545
- 'Instances with a custom timezone that were upgraded from an earlier release of GitHub Enterprise Server may have incorrect timestamps in the web UI.'
46+
- 'Old builds of Pages are not cleaned up, which could fill up the user disk (`/data/user/`).'
4647
- |
4748
Users may experience assets such as avatars not loading, or a failure to push/pull code. This may be caused by a PID mismatch in the `haproxy-cluster-proxy` service. To determine if you have an affected instance:
4849

data/release-notes/3-0/2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ sections:
2929
- When maintenance mode is enabled, some services continue to be listed as "active processes". The services identified are expected to run during maintenance mode. If you experience this issue and are unsure, contact [GitHub Enterprise Support](https://enterprise.githubsupport.com/hc/en-us) or [GitHub Premium Support](https://premium.githubsupport.com/).
3030
- Jupyter Notebook rendering in the web UI may fail if the notebook includes non-ASCII UTF-8 characters.
3131
- reStructuredText (RST) rendering in the web UI may fail and instead display raw RST markup text.
32+
- Old builds of Pages are not cleaned up, which could fill up the user disk (`/data/user/`).
3233
- |
3334
Users may experience assets such as avatars not loading, or a failure to push/pull code. This may be caused by a PID mismatch in the `haproxy-cluster-proxy` service. To determine if you have an affected instance:
3435

data/release-notes/3-0/3.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ sections:
2828
- When maintenance mode is enabled, some services continue to be listed as "active processes". The services identified are expected to run during maintenance mode. If you experience this issue and are unsure, contact [GitHub Enterprise Support](https://enterprise.githubsupport.com/hc/en-us) or [GitHub Premium Support](https://premium.githubsupport.com/).
2929
- Jupyter Notebook rendering in the web UI may fail if the notebook includes non-ASCII UTF-8 characters.
3030
- reStructuredText (RST) rendering in the web UI may fail and instead display raw RST markup text.
31+
- Old builds of Pages are not cleaned up, which could fill up the user disk (`/data/user/`).
3132
- |
3233
Log rotation may fail to signal services to transition to new log files, leading to older log files continuing to be used, and eventual root disk space exhaustion.
3334
To remedy and/or prevent this issue, run the following commands in the [administrative shell](https://docs.github.com/en/enterprise-server/admin/configuration/accessing-the-administrative-shell-ssh) (SSH), or contact [GitHub Enterprise Support](https://enterprise.githubsupport.com/hc/en-us) or [GitHub Premium Support](https://premium.githubsupport.com/) for assistance:

0 commit comments

Comments
 (0)