After forking a Github repository I performed some changes in it. This was quite some time back, now the upstream branch is well ahead. Thus I wanted to merge those remote changes into my forked repo.
I hit upon a merge conflict in one file only. I went ahead and ran vimdiff
as the mergetool
to sort these things out.
I only want to merge in the remote changes and discard the local ones.
But there are too many conflicting hunks in that file. Selecting changes to merge one by one is tedious to say the least.
- Is there a shortcut to
:diffget RE
on all the conflicts in that file? - Maybe there is a method to select only a branches diff while discarding the other one in git?