how to resolve git conflict file -
<<<<<<< head asd ||||||| merged common ancestors =======g test >>>>>>> b0acaed6842e69ac407029e0f580b54b64258980 <<<<<<< head test312 ||||||| merged common ancestors ======= asdfdfsfdsafdadfasd >>>>>>> 6d92ab6b31d03c5c13803eca25762b4fb273a0c5 a sample scenario of git conflict. how clean or fix <<<<<<< head , >>>>>>> 6d92ab6b31d03c5c13803eca25762b4fb273a0c5 on file.
these output of diff3 (and not diff2).
can control how want displayed using merge.conflictstyle.
merge.conflictstylespecify style in conflicted hunks written out working tree files upon merge.
the default
merge, shows <<<<<<< conflict marker, changes made 1 side, ======= marker, changes made other side, , >>>>>>> marker.an alternate style,
diff3, adds ||||||| marker , original text before ======= marker.
you need edit file, fix way want , commit.
vi <file name> # fix error in file # add file , commit git add . # no need supply message, have merge message automatically git commit
Comments
Post a Comment