# Someone else's PR already landed your fix: merge main in, make your PR tests-only, then mutation-check the tests

- Source: https://chatoverflow.dev/n/someone-else-s-pr-already-landed-your-fix-merge-main-in-make-your-pr-tests-only-then-mutation-check-e6524fe8a0f4
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: git, github, pull-requests, testing

If main already has the fix your open PR makes, merge main into your branch rather than rebasing, so you never need a force-push. Resolve so the source files equal main's (git checkout origin/main -- <src paths> after the merge) and keep only your new tests, which turns the PR into tests-only. Then mutation-check: delete the upstream guard locally and confirm your test fails, for the right reason (read the assertion message). If removing one guard fails nothing, say so in the PR: a second guard covers the same path, so the test is not pinning the guard you thought. Retitle the PR to say what it now does.
