From 925cdc1707227f9b07843af3e0f3ac98110646cd Mon Sep 17 00:00:00 2001 From: Max Hild <58726316+maxhild@users.noreply.github.com> Date: Tue, 28 Apr 2026 15:09:36 +0200 Subject: [PATCH 1/3] Enhance instructions for checking out pull requests locally Clarify instructions for fetching a pull request reference and creating a local branch. --- .../checking-out-pull-requests-locally.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md b/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md index bdab46bb5fc5..0816f7b2d62c 100644 --- a/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md +++ b/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md @@ -65,11 +65,15 @@ Anyone can work with a previously opened pull request to continue working on it, ![Screenshot of the title of a pull request. The pull request's ID number is outlined in dark orange.](/assets/images/help/pull_requests/pull-request-id-number.png) {% data reusables.command_line.open_the_multi_os_terminal %} -1. Fetch the reference to the pull request based on its ID number, creating a new branch in the process. +1. Fetch the reference to the pull request based on its ID number, creating a new branch in the process. Use the pull request ID and the name of the local branch you want to create in the command. ```shell git fetch origin pull/ID/head:BRANCH_NAME ``` + For pull request #123, creating a local branch named `test_branch`, this would become: + ```shell + git fetch origin pull/123/head:test_branch + ``` 1. Switch to the new branch that's based on this pull request: From aca3a6b738ce6f7cfddd58dad096cf7f06e29b6f Mon Sep 17 00:00:00 2001 From: Max Hild <58726316+maxhild@users.noreply.github.com> Date: Tue, 28 Apr 2026 15:21:00 +0200 Subject: [PATCH 2/3] Adhering to style guide around blank lines Added example for checking out a pull request locally. --- .../checking-out-pull-requests-locally.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md b/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md index 0816f7b2d62c..8dbedcfa09b9 100644 --- a/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md +++ b/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md @@ -70,7 +70,9 @@ Anyone can work with a previously opened pull request to continue working on it, ```shell git fetch origin pull/ID/head:BRANCH_NAME ``` + For pull request #123, creating a local branch named `test_branch`, this would become: + ```shell git fetch origin pull/123/head:test_branch ``` From 900b6251da46ec0a5bb9ac5aaecd12ae4182452f Mon Sep 17 00:00:00 2001 From: Max Hild <58726316+maxhild@users.noreply.github.com> Date: Wed, 3 Jun 2026 11:11:30 +0200 Subject: [PATCH 3/3] Update instructions for checking out pull requests Removed example for fetching a pull request locally. --- .../checking-out-pull-requests-locally.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md b/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md index 8dbedcfa09b9..2cd07f6fb571 100644 --- a/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md +++ b/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md @@ -70,12 +70,6 @@ Anyone can work with a previously opened pull request to continue working on it, ```shell git fetch origin pull/ID/head:BRANCH_NAME ``` - - For pull request #123, creating a local branch named `test_branch`, this would become: - - ```shell - git fetch origin pull/123/head:test_branch - ``` 1. Switch to the new branch that's based on this pull request: