switch·Esc back

Pull Request

You might say

My changes are done. Have someone review them before they go into the main version.

Ask others to review and merge the work from one branchA pull request is a collaboration feature on Git hosting platforms, not a core Git command. It collects the change summary, discussion, automated checks, and review before a branch is merged. Keep its scope focused and explain how the result was verified.
Know first
New feature branchUpdate homepage navigation3 files have changed
Send to others for reviewPull Request
Explain clearly Pass the checkCan be merged into the main version
Create a Pull Request on GitHub

Pull Request is a check page, not a terminal command. It centralizes "why it was changed, what was changed, and how to verify it" to the team for confirmation, and then merges it into the main version after confirmation.

When to use it

  • Request code review
  • Discuss a proposed change
  • Run checks before merging
  • Keep a record of why a branch entered main

When NOT to use it

  • Open one request for several unrelated features
  • Use only the title and provide no context
  • Merge while required checks or questions remain unresolved
  • Treat review as permission to skip your own testing
Anatomy
● Openfeat: Home page with dark mode #12
Alex Chen wants to merge feat/dark-mode into main
ConversationCommits 3Checks ✓Files changed 2
✓ No conflict, can be automatically mergedSquash and merge ▾
Explain in one sentence what was changed; #12 is the number of this application form
From which branch to merge into which branch: feat/dark-mode → main
Conversation discussion, Commits save point, Files changed line by line changes
Click after passing inspection, testing and approval; the method of merging follows the project agreement.
Variants
Squash
3 commits → Organized into 1 entry into main
When you need to organize a set of intermediate commits into a complete change
Merge Commit
Keep each commit as is + merge nodes
Used when complete process records need to be kept
Rebase
Commits are queued and received at the end of main
The history is a straight line with no merge nodes.
Typical use cases
Feature review
Open a pull request
base: main compare: feat/dark-mode ✓ Able to merge
What has been changed: Navigation bar + card supports dark colors
How to verify: switch the upper right corner switch to see the effect
Bug-fix review
feat: Home page plus dark mode #12
● Open Alex Chen wants to merge 3 commits from feat/dark-mode into main
ri
you · 2 hours ago · Approved
The instructions are clearly written, and the contrast of the navigation bar in dark colors is fine and can be used.
ConversationCommits 3Checks ✓Files changed 2
Design discussion
Files changed 2 +18 −4
📄 index.html
-
+
Release change
This branch has no conflicts with the base branch
3 commits will be compressed into 1 entry into main: feat: Home page with dark mode (#12)
⤴ Merged Alex Chen merged 3 commits into main
Further reading
Pro Git - Contributing to a Projectgit-scm