Outdated code shown in compare/pull request

I’ve forked someone’s repo to customize it for my own use. Since then they’ve updated their code and I want to merge the latest commits of thier master into my customized fork to keep my version up-to-date yet still customized.

https://github.com/Drift91/Cops_FiveM/compare/dev…Kyominii:master

Now if you compare the above comparison of changelog.md to the actual contents below, you’ll see that the comparison above is completely out of date.

https://github.com/Drift91/Cops_FiveM/blob/dev/CHANGELOG.md

It seems as if it’s comparing his master before I forked it to his current master instead of comparing my current dev branch to his current master branch. Is this a bug in the website or am I doing something wrong? If this is how it’s going to function then making a pull request to my code is useless and I might as well do everything manually in a text editor.

Does someone know how to properly compare the most recent code of both forks? I’ve even tried using the hash of my most recent commit to compare and it still shows the outdated code. What’s weird is that even if I switch the direction of the comparison, it still shows the same outdated 1.4.0 code on the left.

Thanks in advance for any assistance.

Hi @drift91

I’d recommend taking a look at our Help Docs on how to merge an upstream repository to your fork:

https://help.github.com/articles/merging-an-upstream-repository-into-your-fork/

If there are conflicts (which it sounds like there might be), you’ll also want to check out the article on addressing merge conflicts:

https://help.github.com/articles/addressing-merge-conflicts/

I hope these help! If you have further questions, please let me know!

1 Like

I have the same problem. I created new branch, did the changes and tryed to compare branches. Now I have the filein 2 branches, but having differences when I comparing branches.

What you’re describing @divergence082 isn’t the same thing. You’re describing the same problem as is mentioned and answered here:

https://github.community/t5/How-to-use-Git-and-GitHub/Branch-to-Branch-Compare-Compares-to-Master-Instead/m-p/4677