GitHub Pull Request Walkthrough: The Ultimate Step by Step Guide

Logan Jul 13, 2026

Welcome to this comprehensive walkthrough of GitHub's pull request process, designed to help you navigate through the collaborative aspects of this powerful version control system. By the end, you'll understand how to initiate, participate, and finalize pull requests with confidence, enhancing your efficiency in collaborative coding projects.

a diagram that shows the flow of people in a network, and how to use it
a diagram that shows the flow of people in a network, and how to use it

Before we dive into the detailed steps, let's quickly understand what a pull request is. In simple terms, a pull request is a way to submit changes to a project that is owned by someone else. It enables developers to contribute code and start discussions around that change before it gets integrated into the main project.

How to Add Screenshots and Animation to GitHub Pull Requests - Make Tech Easier
How to Add Screenshots and Animation to GitHub Pull Requests - Make Tech Easier

Initiating a Pull Request

Let's start by creating a new branch for your changes to keep your modifications separate from the main codebase. This practice ensures a clean and organized workflow and allows others to review your changes in isolation.

GitHub - dec0dOS/amazing-github-template: 🚀 Useful README.md, LICENSE, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, GitHub Issues, Pull Requests and Actions templates to jumpstart your projects.
GitHub - dec0dOS/amazing-github-template: 🚀 Useful README.md, LICENSE, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, GitHub Issues, Pull Requests and Actions templates to jumpstart your projects.

Once you've made changes in your new branch, it's time to open a pull request to propose your additions or modifications to the maintenance team. To do this, you'll need to supply a clear and concise title, along with a detailed description that explains the purpose of your changes.

Creating a New Branch

a hand holding a cell phone with a button on the screen that says github open source
a hand holding a cell phone with a button on the screen that says github open source

To create a new branch, you can type the following command into your terminal: `git checkout -b new-branch-name origin/main`. This command checks out a new branch named 'new-branch-name' from the 'main' branch (replace 'main' with the actual name of the main branch in your project if it's different).

You can also create a new branch directly from the GitHub interface by clicking on the 'New Branch' button and following the prompts. This method comes in handy when you're working remotely or prefer a more visual approach.

Opening a Pull Request

a purple background with the words pull to refresh on it and an image of a phone
a purple background with the words pull to refresh on it and an image of a phone

With your changes committed, it's time to open a pull request. On GitHub, navigate to the repository you're working in and click on 'Pull requests' in the top menu. Here, click on the green 'New pull request' button. This will open a dialog box where you can enter a title and description for your pull request.

In the title, be concise and summarize the purpose of your changes, e.g., "Add new functionality for user profiles." In the description, provide a detailed explanation of the changes you've made, why you made them, and any relevant issues that influenced your decision. This description helps reviewers understand your changes and makes the review process smoother.

Contributing to an Existing Pull Request

GitHub Collaboration: Forking, Pull Requests and Shared Repositories Explained
GitHub Collaboration: Forking, Pull Requests and Shared Repositories Explained

Once a pull request is opened, others can review your changes and provide feedback. As a contributor, you can address comments, make additional changes, or ask for clarification. Here's how you can effectively contribute to an open pull request.

Head over to the pull request page and review the changes made by the original author. You can do this by clicking 'Files changed' and examining the changes line-by-line. If you find any issues, you can comment directly on the specific lines of code or leave a general comment at the bottom of the page.

Aesthetic GitHub Profile README by https://github.com/alan-thomas-shaji
Aesthetic GitHub Profile README by https://github.com/alan-thomas-shaji
Github Cheatsheet
Github Cheatsheet
the diagram shows how to use git in an nutshelll game, and what it
the diagram shows how to use git in an nutshelll game, and what it
a computer screen with the text stop forgeting git
a computer screen with the text stop forgeting git
an image of a computer screen showing the flow of data and symbols in different languages
an image of a computer screen showing the flow of data and symbols in different languages
the differences between github and github in web design, which one should use?
the differences between github and github in web design, which one should use?
an iphone screen with the text,'i would love to get your job today '
an iphone screen with the text,'i would love to get your job today '
login form html css
login form html css
a purple and white sign with the word generale on it in front of a black background
a purple and white sign with the word generale on it in front of a black background
Master Git Essentials: A Developer's Guide to Version Control 🚀
Master Git Essentials: A Developer's Guide to Version Control 🚀
the blue and white website design is shown in two different sections, one with an image of
the blue and white website design is shown in two different sections, one with an image of
an image of a web page with the caption'activate '
an image of a web page with the caption'activate '
an image of a cell phone screen with circles on the front and back side,
an image of a cell phone screen with circles on the front and back side,
Responsive Animated Login and Signup Page with HTML CSS And JavaScript
Responsive Animated Login and Signup Page with HTML CSS And JavaScript
an image of a computer screen with the text,'how do you use it? '
an image of a computer screen with the text,'how do you use it? '
a computer screen with a padlock on it
a computer screen with a padlock on it
Three Dots Jumping Loading Status Using Vanilla CSS Only
Three Dots Jumping Loading Status Using Vanilla CSS Only
an image of a computer screen with the text hackr login form
an image of a computer screen with the text hackr login form
the text changes looked out to be an important request
the text changes looked out to be an important request

Responding to Reviews

Reviewers might provide feedback on your changes. Address these comments by making the necessary modifications and pushing new commits to your branch. Each time you push a new commit, it will update the pull request, and reviewers will be notified of your changes. This interactive process allows you to incorporate feedback and iterate on your changes.

If you disagree with a reviewer's feedback or need more information, you can respond to the comment directly. This helps maintain an open dialogue and facilitates a successful collaboration.

Requesting Changes or Approval

As a contributor, you can ask for changes or approval on a pull request. These requests help manage the review process and keep everyone on track. To request changes, click on the 'Reviewers' tab and then click 'Request changes.' This notifies the original author that you'd like them to make adjustments to the proposed changes. To request approval, follow the same steps but select 'Request review' instead.

These interactions help maintain a productive and collaborative environment, ensuring everyone's voices are heard and considered throughout the pull request process.

Merging a Pull Request

The final phase of the pull request process is merging your changes into the main codebase. Here's how it's done.

Once your pull request has been reviewed and approved, and any requested changes have been made, you're ready to merge. In the pull request page, click on 'Merge pull request.' Before you proceed, ensure that your branch has no any unaddressed comments or required changes. If everything looks good, click 'Confirm merge' to merge your branch into the main codebase.

Deleting a Merged Branch

After merging, it's a good practice to delete the merged branch. This helps keep your Git repository organized and prevents any confusion. To delete a branch, you can use the `git branch -d branch-name` command in your terminal, replacing 'branch-name' with the name of the branch you want to delete.

You can also delete a branch directly from the GitHub interface. In the repository's 'Branches' tab, find the branch you want to delete, click on the ellipsis next to it, and select 'Delete branch.' Ensure that you're not deleting the branch you're currently working on or any branch that has unmerged changes.

Embracing GitHub's pull request workflow not only aids in maintaining a clean and efficient coding environment but also promotes collaboration and ensures that every change to the codebase is thoughtful and well-received. Happy coding!