• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Architect

  • Network Automation
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Inventory Example
    • Python Network Automation
      • Nornir
      • Python Network Automation Course
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox
      • Infrahub
      • NautoBot
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

What is a GitHub Pull Request?

Home » GitHub Tutorials

GitHub Pull Request Explained

In this GitHub Pull Request Tutorial I am going to explain in as simple terms as I can what is a GitHub Pull Request and how you use it in your workflow.

If you want to contribute or make a change to a GitHub Repository, whether it’s a public repository for an open source project or a repository you are working on within a team, at some point in time you will have to make a Pull Request.

In simple terms a GitHub Pull Request is

GitHub Pull Request Example

GitHub Pull Request Workflow

This is a typical pull request workflow for suggesting changes to a public repository for example to an open source project.

  1. Fork the repository: To create a pull request, you need to have your own copy of the repository. You can fork the repository on GitHub by clicking the “Fork” button in the top right corner of the repository page.
  2. Clone the repository: After you’ve forked the repository, clone it to your local machine using the Git command line or a Git GUI client.
  3. Create a new branch: Create a new branch in your local repository to make your changes. Give the branch a descriptive name that reflects the changes you’re making.
  4. Make changes: Make the changes you want to suggest to the original repository. Be sure to test your changes and make sure they work as expected.
  5. Commit your changes: When you’re satisfied with your changes, commit them to your local repository. Be sure to write a descriptive commit message that explains what you’ve changed and why.
  6. Push the changes to your fork: Push the changes you’ve committed to your fork on GitHub.
  7. Open a pull request: On the GitHub page for your fork, click the “New pull request” button to open a pull request. Review your changes and ensure that your pull request contains all the changes you want to suggest.
  8. Request a review: Once you’ve opened the pull request, request a review from the repository owner or other contributors. They will review your changes and provide feedback.
  9. Address feedback: If the repository owner or other contributors provide feedback, address their comments by making additional changes and pushing them to your fork.
  10. Merge the pull request: When everyone is satisfied with the changes, the repository owner can merge the pull request into the main branch.

This is a basic workflow for creating a pull request on GitHub, but the specific steps may vary depending on the repository and the changes you’re proposing. However, this workflow provides a general idea of the steps involved in creating a pull request and getting your changes reviewed and merged into a Git repository.

GitHub Pull Request Template

GitHub Pull Request Approval

GitHub Pull Request API

GitHub Pull Request Visual Studio Code

You can use Visual Studio Code (VSCode) to create pull requests on GitHub by following these steps:

  1. Install the Git extension: To use VSCode with GitHub, you need to install the Git extension for VSCode. You can install it from the VSCode marketplace by searching for “GitLens” or “GitHub Pull Requests and Issues”.
  2. Clone the repository: Clone the repository you want to create a pull request for to your local machine. You can do this from within VSCode by using the GitLens extension, or from the command line.
  3. Create a new branch: Create a new branch in your local repository to make your changes. Give the branch a descriptive name that reflects the changes you’re making.
  4. Make changes: Make the changes you want to suggest to the original repository. Be sure to test your changes and make sure they work as expected.
  5. Stage and commit the changes: Use the GitLens extension or the Git command line to stage and commit your changes to your local repository.
  6. Push the changes to your fork: Push the changes you’ve committed to your fork on GitHub.
  7. Open a pull request: On the GitHub page for your fork, click the “New pull request” button to open a pull request. Review your changes and ensure that your pull request contains all the changes you want to suggest.
  8. Request a review: Once you’ve opened the pull request, request a review from the repository owner or other contributors. They will review your changes and provide feedback.
  9. Address feedback: If the repository owner or other contributors provide feedback, address their comments by making additional changes and pushing them to your fork.
  10. Merge the pull request: When everyone is satisfied with the changes, the repository owner can merge the pull request into the main branch.

By using VSCode with the GitLens extension, you can streamline the process of creating a pull request on GitHub, making it easier to manage your Git repositories and collaborate with others.

PR / Pull Request / Merge Request?

Pull Request Conflict Resolution

What is a Pull Request in Git?

A pull request in Git is a way to suggest changes to a repository by proposing your changes in a separate branch and asking the repository owner to review and merge the changes into their main branch.
When you create a pull request, you fork the repository and make changes to a separate branch on your own copy of the repository. Then, you submit a request to the original repository owner, asking them to review your changes and merge them into the main branch (usually the “master” branch) of the original repository.
The repository owner can then review your changes, discuss them with you, and either merge them into the main branch or request additional changes. The pull request process allows for collaboration and code review, and helps ensure that changes are carefully considered before being merged into the main branch.
In short, a pull request is a way to submit changes to a Git repository for review and merge, and it provides a mechanism for collaboration and code review in Git-based projects.

Category: GitHub Tutorials, Git Tutorials
ansible course for network engineers
Get Access to my Ansible Course NOW
Previous Post:aws certified developer associateAWS Certified Developer Associate DVA-C02
Next Post:AWS CLI

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

python course for network engineers

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2026 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms