A reviewer asks for changes. How do you update the PR cleanly?
BeginnerScenarioRemotes, Collaboration and Pull Requests
Answer
Situation read → The PR updates automatically when you push to its branch.
What I'd do →
- Make the changes locally and commit them.
git push(no force needed for plain commits).- Reply to each comment and resolve threads you have addressed.
- Re-request review using the "Re-request" icon.
Why → New commits show up in the PR timeline, so reviewers can see what changed since their review.
Interview tip → Avoid force-pushing mid-review unless the team agreed, since it can hide incremental changes.
More on Remotes, Collaboration and Pull Requests
You are new to a team. How do you collaborate daily without stepping on others' toes?BeginnerYou are migrating a repo from Bitbucket to GitHub and must keep every branch and tag.IntermediateYou want to contribute a fix to an open-source project you do not have write access to.BeginnerA teammate sent a 3,000-line PR and nobody can review it properly.IntermediateYour team wants stacked PRs so that large work arrives in small reviewable steps. How do you set it up?AdvancedWhy do you use `--force-with-lease`, and when does it still hurt?Intermediate