Lesson 40 +20 XP

Send a Pull Request

Send a Pull Request

A pull request (PR) is a request to merge your changes into another repository or branch. It is how open source contributions happen.

The full contribution flow

  1. Fork the original repository.
  2. Clone your fork to your computer.
  3. Create a branch for your change.
  4. Make your changes and commit them.
  5. Push the branch to your fork.
  6. Open a pull request from your fork to the original.

Open the pull request

On GitHub:

  1. Go to your fork on GitHub.
  2. GitHub shows a "Compare & pull request" button for your pushed branch.
  3. Click it, write a title and description.
  4. Click Create pull request.

What happens next

  • Maintainers review your changes.
  • They may ask for edits; you push more commits to the same branch and they update the PR.
  • If everything looks good, the maintainer merges your PR.

Keep it friendly

  • Describe what your change does and why.
  • Follow the project's contributing guide if it has one.
  • Be ready for feedback.

TL;DR

  • A pull request asks the original repo to merge your changes.
  • Flow: fork, clone, branch, commit, push, then open a PR.
  • Maintainers review, you adjust, and they merge.
  • A PR is the standard way to contribute to open source.