Chapter 8 Working with Pull Requests

Chapter 8

Working with Pull Requests

IN THIS CHAPTER

Bullet Creating a pull request

Bullet Writing a great pull request

Bullet Reviewing a pull request

Bullet Exploring pull request workflows

In Chapter 7, we note that a commit is the smallest unit of work with Git. On GitHub, the pull request is the main unit of work.

In this chapter, we explain exactly what a pull request is and how it pushes code to GitHub. We also describe the processes for opening, writing, and reviewing a pull request.

Understanding a Pull Request

The name pull request is confusing to some folks. “What exactly am I requesting to be pulled?” Good question. A pull request is a request to the maintainer of a repository to pull in some code.

When you write some code that you want to contribute to a repository, you create and submit a pull request. Your code contains some proposed changes to the target repository. A pull request is your way of offering these changes to the maintainer of the repository. It gives the repository maintainers an opportunity to review the changes and either accept them, ...

Get GitHub For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.