Chapter 8
Working with Pull Requests
IN THIS CHAPTER
Creating a pull request
Writing a great pull request
Reviewing a pull request
Exploring pull request workflows
In Chapter 7, I 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, I explain exactly what a pull request is and how it pushes code to GitHub. I 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, reject them, or ask for more changes to be ...
Get GitHub For Dummies, 2nd Edition 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.