Guidebook

From the Guidebook library

Open your first pull request

8 steps · opens github.com · Beta

Beta. This guide was written from the product's documentation and hasn't been walked on the real website yet, so a step may not match what you see. It will show a “tested” date once it has been checked.

To follow this guide on the real website, you need the Guidebook browser extension. It points at each thing to click and waits for you to do it.

Add Guidebook to Chrome

It's free. After it's added, come back to this page and click Start.

Send to my computer

Guidebook runs in Chrome on a computer. Send yourself this page and open it there.

You can also read the steps below.

The steps

  1. What you'll do

    A pull request is how you ask for a change to be added to a project. This guide edits a file on GitHub's website and turns the edit into a pull request. First open a repository you own or can change, and open its README.md file. Click Next when you're looking at that file.

  2. Edit the file

    Click the pencil button, near the top on the right of the file.

  3. Make a change

    Add or change a sentence in the box. Click Next when you've made a change.

  4. Start the commit

    Click the green Commit changes button, near the top on the right.

  5. Put it on its own branch

    Choose Create a new branch for this commit and start a pull request. A branch keeps your change separate until it's approved.

  6. Propose it

    Click Propose changes.

  7. Open the pull request

    Check the title and description say what you changed, then click Create pull request.

  8. All done

    Your pull request is open. People can now review it and add your change. Well done!

Use this guide another way

This is the guide itself. Paste it into Guidebook's Add a guide box, or keep it with your own guides.

---
id: github-open-pull-request
title: Open your first pull request
start: https://github.com/
---

Suggest a change to a project, in a way people can review before it's added.

## What you'll do {#welcome}
show: card
advance_on: manual
novice: A pull request is how you ask for a change to be added to a project. This guide edits a file on GitHub's website and turns the edit into a pull request. First open a repository you own or can change, and open its **README.md** file. Click **Next** when you're looking at that file.
expert: Open a PR from a branch created through the web editor. Start on a repository's `README.md` page.

## Edit the file {#edit}
anchor: { role: button, name: "Edit this file" }
show: spotlight
advance_on: click
novice: Click the pencil button, near the top on the right of the file.
expert: Click **Edit this file**.

## Make a change {#change}
anchor: { role: textbox, name: "Editing file contents" }
show: tooltip
advance_on: manual
novice: Add or change a sentence in the box. Click **Next** when you've made a change.
expert: Make the edit, then continue.

## Start the commit {#commit}
anchor: { role: button, name: "Commit changes" }
show: spotlight
advance_on: click
novice: Click the green **Commit changes** button, near the top on the right.
expert: Click **Commit changes**.

## Put it on its own branch {#branch}
anchor: { role: radio, name: "Create a new branch for this commit and start a pull request" }
show: spotlight
advance_on: click
novice: Choose **Create a new branch for this commit and start a pull request**. A branch keeps your change separate until it's approved.
expert: Choose **Create a new branch for this commit and start a pull request**.

## Propose it {#propose}
anchor: { role: button, name: "Propose changes" }
show: spotlight
advance_on: click
novice: Click **Propose changes**.
expert: Click **Propose changes**.

## Open the pull request {#open}
anchor: { role: button, name: "Create pull request" }
show: spotlight
advance_on: click
novice: Check the title and description say what you changed, then click **Create pull request**.
expert: Write a clear title and description, then click **Create pull request**.

## All done {#done}
show: card
novice: Your pull request is open. People can now review it and add your change. Well done!
expert: PR opened. Reviewers can comment and merge.