Reputation: 2797
I like git's way of resolving conflict and I wanna use it for two versions of an arbitrary file, that are not in a repository. Any suggestion about what could be the approach?
Upvotes: 0
Views: 125
Reputation: 52226
If you want to partially transform the content of thefile
from A
to B
, you can maybe take advantage of git add -p
which runs from the command line :
thefile
having content A
thefile
with content B
into the repogit add -p
to have the interactive command line interface to stage the diff chunk by chunka technical note : for a merge git actually has 3 files : ours
, theirs
and base
. A conflict can arise when a patch (the diff between two files: base
and theirs
) tries to apply a diff in a position where the file has already changed in the 3rd file (ours
).
Upvotes: 1