AI Hints
Home›Git & GitHub Tutorial›Pull Requests
Git & GitHub · Lesson 69 of 144

What a Pull Request Is

Asking to merge.

⏱ 2 min read▶ Video at 1:15:42🎓 Free
Watch this lesson in the Git & GitHub courseWatch on YouTube ↗Full Git & GitHub course

A pull request is a request to merge one branch into another, on GitHub. Instead of merging on your own computer, you open a pull request, and your team can look at the changes, discuss them, and then merge them with a click.

What a Pull Request Is
From the video: What a Pull Request Is
  • A request to merge a branch
  • Opened on GitHub
  • The team reviews, then merges

What a pull request shows

A pull request page has four main parts. A title and description, explaining what you did and why. The list of commits on your branch. The files changed, with every line added and removed, just like git diff. And a conversation, where people comment and approve.

Descriptionwhat and why
Commitson your branch
Files changedthe full diff
Conversationcomments and approvals

Merging locally or with a pull request

Working alone, merging on your own computer is fine. But in a team, pull requests are the standard. Every change gets a second pair of eyes, there's a record of why it was made, and automatic checks can run before anything reaches main.

git merge on your computer

  • Quick
  • No review
  • Fine when working alone

Pull request on GitHub

  • Reviewed by the team
  • Discussion recorded
  • The team standard

Summary

A pull request asks to merge a branch, and lets the team review it first. Next, opening one, step by step.

Key takeaways
  • PR = request to merge
  • Review before merging
  • The team standard
Next up: Opening a Pull Request — branch, push, open