I'm on a new branch and made some changes to files. Meanwhile the master branch has changed too, so to incorporate those changes in my branch I would like to use rebase. I checkout the master branch and pull, then going back into my new branch, I do
git rebase master
Then I'm getting some conflicts, in those files with conflicts, vs-code allows me to resolve the conflicts, however in other lines (in those same files with conflicts), where there are no conflicts, I see that git overwritten my new code (which I committed), and it was overwritten by the older code of my master. Why is that so? Isn't it supposed to be the other way around? I'm rebasing master my new commit should be on top - therefore why my code is being overwritten by the older one from Master?