Skip to content

Enhance instructions for checking out pull requests locally#44013

Open
maxhild wants to merge 2 commits intogithub:mainfrom
maxhild:patch-1
Open

Enhance instructions for checking out pull requests locally#44013
maxhild wants to merge 2 commits intogithub:mainfrom
maxhild:patch-1

Conversation

@maxhild
Copy link
Copy Markdown

@maxhild maxhild commented Apr 28, 2026

Clarify instructions for fetching a pull request reference and creating a local branch.

Why:

Clarifying direction of merging and creation of new branches. I found it very hard to understand when first learning git and here it was unclear to me.

Closes:
#44014

What's being changed (if available, include any code snippets, screenshots, or gifs):

I just added a small section. Thanks for providing open source code!

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

Clarify instructions for fetching a pull request reference and creating a local branch.
@github-actions github-actions Bot added the triage Do not begin working on this issue until triaged by the team label Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally.md fpt
ghec
ghes@ 3.20 3.19 3.18 3.17 3.16 3.15 3.14
fpt
ghec
ghes@ 3.20 3.19 3.18 3.17 3.16 3.15 3.14

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

Added example for checking out a pull request locally.
@Sharra-writes
Copy link
Copy Markdown
Contributor

@maxhild I'm relieved, because this is a much more narrowly scoped change than your issue suggested. When we say "section," we mean at least a paragraph with an H2 or H3 title above it, which would have been way too much. That said, while I think the sentence is fine to underscore the branch creation, I do think the example is excessive. If you take that out, I'll be happy to approve the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants