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.
:diffget RE
on all the conflicts in that file?Using Vims global select you can replace all diffs with either LOCAL, BASE or REMOTE
:1
<Shift>-V
G
:diffget REMOTE
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