Which version of the git file will be finally used: LOCAL, BASE or REMOTE?

前端 未结 8 1423
故里飘歌
故里飘歌 2020-11-28 17:39

When there\'s a collison during git merge, I open a mergetool called Meld. It opens three files LOCAL, BASE and REMOTE. As I\'ve read LOCAL is my local branch,

8条回答
  •  情深已故
    2020-11-28 18:24

    Please see Saad's answer for the correct answer.

    With meld 1.8.1 on Ubuntu I was getting the

    wrong number of arguments supplied to --diff

    and adding the --output before $MERGED fixed it for me:

    [mergetool "mymeld"]
    cmd = meld --diff $BASE $LOCAL --diff $BASE $REMOTE --diff $LOCAL $BASE $REMOTE --output $MERGED
    

提交回复
热议问题