Git Diff with Beyond Compare

前端 未结 17 2090
醉酒成梦
醉酒成梦 2020-11-30 16:39

I have succeeded in getting git to start Beyond Compare 3 as a diff tool however, when I do a diff, the file I am comparing against is not being loaded. Only the latest ver

17条回答
  •  庸人自扰
    2020-11-30 17:14

    Run these commands for Beyond Compare 2:

    git config --global diff.tool bc2
    git config --global difftool.bc2.cmd "\"c:/program files (x86)/beyond compare 2/bc2.exe\" \"$LOCAL\" \"$REMOTE\""
    git config --global difftool.prompt false
    

    Run these commands for Beyond Compare 3:

    git config --global diff.tool bc3
    git config --global difftool.bc3.cmd "\"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\""
    git config --global difftool.prompt false
    

    Then use git difftool

提交回复
热议问题