I forked from an open source repository and cloned from my fork. I created a feature branch, made some changes, pushed them to my forked repo, and submitted a pull request from there to the main repo.
Later I made more changes to the same local feature branch, pulled from the latest master from the open source repo, rebased my changes onto that, and pushed them up to the same feature branch on my fork. The pull request was automatically updated but now the pull request page on GitHub (in both my repo and the main repo) notes that "All checks have passed" but then says "This branch has conflicts that must be resolved".
Is this simply due to the fact that other pull requests have been merged after mine was submitted? Or could there be another reason for the conflict? How do I find out the cause?
The answers I saw before submitting this question dealt with merging branches with different names or owners. I want to know:
It would be because of the upstream (the original repo that you forked from) has commits that aren't included in your pull request's repo (whether that's from other pull requests getting approved and merged, or just contributors' own commits is a moot point).
The solution here would be to fetch from the upstream repo (the original repo that you forked from) and resolve your merge conflicts locally so that your pull request doesn't require the original repo's reviewer(s) to have to deal with merge conflicts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With