Pull requests documentation
Discover how to create, review, and merge pull requests, resolve merge conflicts, and work with forks.
OverviewRecommended
About pull requests
Use pull requests to propose, discuss, and merge changes on GitHub.
Branches
Use branches in GitHub to isolate development work, manage default branches, and collaborate effectively using pull requests and branch protections.
Creating a pull request
Create a pull request to propose changes to the code in a repository.
Articles
Work with forksAbout forks
Use forks to make changes in your own copy of a repository and propose them back to the original project.
Create pull requestsAbout pull requests
Use pull requests to propose, discuss, and merge changes on GitHub.
Create pull requestsAbout stacked pull requests
Break large code changes into a chain of smaller, dependent pull requests you can review and merge independently.
Work with forksAllowing changes to a pull request branch created from a fork
Enable collaboration by allowing repository maintainers to commit changes to pull request branches created from forks in your personal account.
Review pull requestsApproving a pull request with required reviews
Approve pull requests with required reviews, including setting approval rules, reviewing changes, and submitting feedback before merging.
Merge and close pull requestsAutomatically merging a pull request
Enable or disable auto-merge for pull requests to streamline your workflow and automatically merge changes once all requirements are met.
Create pull requestsBranches
Use branches in GitHub to isolate development work, manage default branches, and collaborate effectively using pull requests and branch protections.
Commit changesChanging a commit message
Amend unclear, incorrect, or sensitive commit messages locally and push updated commits to GitHub, including steps for editing recent or older commits.
Create pull requestsChanging the base branch of a pull request
Modify the base branch of an open pull request to compare changes against a different branch and ensure accurate updates.
Showing 1-9 of 65