Skip to content
Back to library
intermediateRemote Repositories

Pull Requests (Conceptual)

The Definition

A pull request is a way to propose changes to a codebase and request that they be reviewed and merged.

Mental Model

"A PR is like asking to merge your work into the main project. It shows the changes, allows discussion, and lets others review before it becomes part of the official code."

Visual Simulation

Live Engine
DEV
Feature
PULL REQUEST #42
✓
MAIN
Master
Reject
Approve & Merge

Watch Out (Common Pitfalls)

!

Including too many changes in a single PR

!

Not addressing review comments

!

Making PRs without adequate testing

Hands-on Command

shell
~ $git checkout -b feature (make changes) git push origin feature (create PR on GitHub/GitLab)