From: Andrey Butirsky Date: Wed, 29 Dec 2021 13:35:07 GMT Subject: Re: request: allow passing -X to git checkout to auto-solve merge conflicts Message-ID: In-Reply-To: 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