STEP 09 OF 13
×Pull Requests & Code Review
A pull request (PR) is a formal proposal to merge changes from one branch into another, reviewed by your team before anything is merged.
Opening a pull request
After pushing a branch to GitHub, open a pull request comparing it against main. GitHub shows exactly what changed, line by line, for reviewers to examine.
Reviewing and discussing
Teammates can comment directly on specific lines, request changes, or approve the pull request. This conversation becomes a permanent record of why decisions were made.
Merging the pull request
Once approved, the pull request can be merged directly from GitHub's interface, automatically updating the target branch without needing the merge command locally.
>_ COMMANDS YOU'LL USE
git push origin feature/loginPush your branch so a pull request can be created from itgit log main..feature/loginPreview the commits your branch has that main doesn't💡Small, focused pull requests get reviewed faster and more carefully than huge ones touching dozens of files.
⚠️Common mistake: Opening a PR against the wrong branch