Version Control

Pull Request · PR

A pull request — a 'PR' — is how you say 'here are my changes, can we add them to the project?' You've done work on your own branch, and a PR proposes folding those changes into the main one, so the team can look before anything is final.

It's really a conversation. Teammates review your changes line by line, leave comments, suggest tweaks, and you push fixes — all in one place. Nothing gets merged until someone gives it a thumbs-up. It's the polite knock before you walk into the shared codebase.

The name comes from the request to 'pull' your changes in. On GitHub and GitLab they look almost identical, though GitLab calls them 'merge requests' — same idea, different label.

$ git push origin fix-login
remote: Create a pull request for 'fix-login':
remote:   https://github.com/you/app/pull/new/fix-login

Push your branch and GitHub offers a link to open the PR for review.

GitLab calls the very same thing a 'merge request' (MR) — don't let the two names confuse you.

Also called
prmerge requestmr