Pull Requests on GitHub
Why use a pull request
A pull request (PR) asks to merge one branch into another, usually a feature branch into main. It supports discussion, review, and automated checks before integration.
Prepare the branch
Commit your work locally, push the branch, then open a PR on GitHub from that branch into the target branch.
git switch -c feature/add-contact-page
# edit, add, and commit
git push -u origin feature/add-contact-page
Write a clear PR
- Summarize the problem and the change
- Link related issues when your project uses them
- List how a reviewer can test the change
- Keep the diff focused on one goal
Finish after approval
After review, merge on GitHub (or locally), then update your local main and delete the finished feature branch when your team is done with it.
git switch main
git pull
git branch -d feature/add-contact-page
Comments
One comment per signed-in account. Comments are saved with this page’s URL.