Impact of Force-Pushing on Existing Pull Requests #142466
-
Select Topic AreaQuestion BodyWhat happens if you create a pull request from a branch that was force-pushed after the PR was opened? |
Beta Was this translation helpful? Give feedback.
Answered by
fxrdhan
Oct 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you force-push to a branch with an open pull request, the PR automatically updates to reflect the new commit history. However, this can cause confusion for reviewers since their previous comments might no longer match the current code context. GitHub will mark previous reviews as outdated. It's generally considered a bad practice to force-push to branches with open PRs unless absolutely necessary.