How do you review a teammate's PR locally?
BeginnerConceptBranching strategies, pull requests and code review
Answer
Fetch the PR head ref or use the GitHub CLI.
gh pr checkout 482
git fetch origin pull/482/head:pr-482
git diff origin/main...pr-482
More on Branching strategies, pull requests and code review
What is a feature-branch workflow?BeginnerWhat is GitFlow and what are its branches?IntermediateWhat is trunk-based development and what does it require?IntermediateWhat is GitHub Flow and how does it differ from GitFlow?BeginnerWhat is release-branch strategy with cherry-picked fixes?IntermediateWhat makes a good pull request?Beginner