---
title: "What is a pull request (PR)?"  
description: "What is a pull request (PR)?"  
author: "Anubhav Sharma"  
published: 2025-06-25  
updated: 2025-07-07  
canonical: https://www.mindstick.com/forum/161748/what-is-a-pull-request-pr  
category: "GitHub"  
tags: ["github", "git"]  
reading_time: 2 minutes  

---

# What is a pull request (PR)?

**What is a [pull request](https://www.mindstick.com/forum/161800/how-do-you-assign-reviewers-or-labels-to-a-pull-request-using-github-workflows) (PR)? also step by step [guide](https://www.mindstick.com/articles/44463/business-to-business-vat-reclaiming-a-guide-for-your-employees) to pull request.**

## Replies

### Reply by Rana Sunny

### What is a Pull Request (PR)?

A **Pull [Request](https://www.mindstick.com/blog/255/post-get-and-request-function-in-php) (PR)** is a **request to merge code** from one branch (usually your feature or forked branch) into another branch (typically the `main` or `develop` branch) 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.

```plaintext
git checkout -b feature-branch
# make changes
git add .
git commit -m "Your message"
git push origin feature-branch
```

#### 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

- **Title** for the pull request
- **Description** explaining your changes

#### Step 5: Submit the pull request

Click **“Create pull request”**

Now, the team can **review**, **comment**, and **merge** your changes.


---

Original Source: https://www.mindstick.com/forum/161748/what-is-a-pull-request-pr

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
