Pull Request 是討論與檢查的入口
Pull Request(PR)不是 Git 指令,而是 GitHub 上請團隊「把這條 branch 的變更合進目標 branch」的協作流程。
一般順序是:推送 feature branch → 建立 PR → 閱讀 diff → 自動檢查 → reviewer 留言 → 追加修正 commit → 通過 review → merge。
PR merge 後,GitHub 上的 main 已前進,但你的本機 main 不會自動更新。回到本機後仍要:
git switch main
git pull
git branch -d feature/login
Review 的目的不是挑錯字,而是共同確認需求、可讀性、風險與日後維護成本。小而單一目的的 PR 通常比較容易審查。
A Pull Request is the doorway to discussion and checks
A Pull Request (PR) is not a Git command. It is a GitHub collaboration flow that asks the team to merge one branch's changes into a target branch.
The usual order is: push the feature branch → open a PR → read the diff → run automatic checks → receive review comments → add fix commits → pass review → merge.
After the PR merges, GitHub's main has moved, but your local main does not update automatically. Back on your computer, run:
git switch main
git pull
git branch -d feature/login
Review is not about hunting typos. It is a shared check of requirements, readability, risk, and future maintenance cost. Small, single-purpose PRs are usually easier to review.