Module · 5 lessons

Collaboration with Pull Requests

Work with other people on GitHub — fork a project, open a pull request, review code, and keep your fork in sync with the original.

At a glance

Level
Intermediate
Lessons
5 lessons
Time to complete
1 week
Cost
Free forever · no sign-up

Welcome to Collaboration with Pull Requests, the fifth module of the course — where Git stops being a solo tool and becomes how teams and entire open-source communities build together. The mechanism is the pull request: you propose changes, others review and discuss them, and once everyone’s happy, they’re merged in. It’s the single most important collaboration skill on GitHub, and it’s how you’ll contribute to other people’s projects and how they’ll contribute to yours.

You’ll learn the fork-and-pull-request model — how to contribute to a repository you can’t push to directly — then open a pull request step by step. You’ll see how code review works (comments, inline suggestions, requested changes, and approvals) and how to respond to feedback. And you’ll learn to keep your fork in sync with the original project using an upstream remote, so your contributions are always based on the latest code. The module ends with a guided project: contributing a feature to a real practice repository via a pull request.

The local Git mechanics here were all run for real; the GitHub steps are shown exactly as you’ll perform them in the web interface and with the gh CLI. Start with Lesson 1, where you’ll learn the fork-and-pull-request model.

Lessons in this module

Achievement

Complete all 5 lessons to finish the Collaboration with Pull Requests module.

Start module