What is a pull request (PR)? also step by step guide to pull request.
What is a pull request (PR)?
351
25-Jun-2025
Rana Sunny
07-Jul-2025What is a Pull Request (PR)?
A Pull Request (PR) is a request to merge code from one branch (usually your feature or forked branch) into another branch (typically the
mainordevelopbranch) in a GitHub repository.It allows others to review, discuss, and approve before changes are merged into the main codebase.
Step-by-Step Guide to Create a Pull Request
Scenario: You’ve made changes in a branch or fork, and want to merge into the main repo.
Step 1: Push your code to a branch
Make changes and push them to a branch in the same or forked repo.
Step 2: Go to GitHub
Visit your repository on GitHub.
Step 3: Click “Compare & pull request”
You’ll see a yellow banner prompting to open a pull request. Click “Compare & pull request”.
Or go to the "Pull Requests" tab > New pull request
Select the base branch (e.g.,
main) and compare branch (e.g.,feature-branch).Step 4: Add PR details
Step 5: Submit the pull request
Click “Create pull request”
Now, the team can review, comment, and merge your changes.