Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub PR shows conflict but local does not

I use 2 main branch, master and release branch. Every PR will be merged to master first, and after proper testing, I will raise a PR to merge from master to release branch. I will not raise any PRs to merge into release except from master.

Based on this workflow, master branch should be merged into release branch without any conflict. However, sometimes it will show merge-conflict in GitHub PR page, whereas I can merge master into release branch without conflict in my local environment.

I notice that GitHub contains 3 merge options, simple merge, squash merge and rebase merge. Is the merge-conflict caused by the merge options I choose? How to solve this weird merge-conflict in GitHub?

Thanks

like image 823
obelisk0114 Avatar asked Oct 26 '25 08:10

obelisk0114


1 Answers

It appears to be a bug in GitHub. This worked for me:

  1. Merge locally
  2. Push up the updated branch
    • This automatically closed (merged) the PR on GitHub
like image 104
Nelu Avatar answered Oct 28 '25 21:10

Nelu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!