merge

Git Merge

Solve conflict

Tools

In nvim, I use plugin fugitive

Commands

open two vertical buffer (one form target, another from feature)

1
:Gvdiffsplit!

stay on middle and use

1
:diffget [buffername](local)

OR
go to target/feature buffer and use

1
:diffput [buffername](target/feature)

save the local file and use

1
2
:Git add .
:Git commit -m "solve merge conflicts"
Author

Chen Yulin

Posted on

2023-05-09

Updated on

2024-05-15

Licensed under

Comments