Thread (5 messages) flat view 5 messages, 2 authors, 2021-12-29

Re: request: allow passing -X <strategy-option> to git checkout <path> to auto-solve merge conflicts

From: Andrey Butirsky <hidden>
Date: 2021-12-29 13:35:13

This is exactly what I tried to avoid, since Git already seem has all 
the needed under the hood to prevent such disaster..

On 29.12.2021 15:13, Erik Cervin Edin wrote:
On a tangent, you can set up your own merge tools.

So in git config you can add something like:

[mergetool "both"]
cmd = "sed -i -e '/^<<<<<<<$/d' -e '/^=======$/d' -e '/^>>>>>>>$/d' -- $MERGED"

and call it with git mergetool --tool=both
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help