小编Mr-*_*tia的帖子

使用Sublimerge配置git mergetool

我配置我的git来解决与Sublimerge的合并冲突.为此,我跑了:

git config --global merge.tool sublimerge

git config --global mergetool.sublimerge.cmd 'subl -n --wait \"$REMOTE\" \"$BASE\"   \"$LOCAL\" \"$MERGED\" --command \"sublimerge_diff_views\"'

git config --global mergetool.sublimerge.trustExitCode 'false'

git config --global diff.tool sublimerge

git config --global difftool.sublimerge.cmd 'subl -n --wait \"$REMOTE\" \"$LOCAL\" --command \"sublimerge_diff_views {\\\"left_read_only\\\": true, \\\"right_read_only\\\": true}\"'
Run Code Online (Sandbox Code Playgroud)

当我运行git mergetool时,Sublime将打开四列:.remote,.base,.local和当前文件.但是,所有列都是空的.

并且所有列名都有一个"在文件扩展名之后,如:file.php.REMOTE.44625.php",file.php.BASE.44625.php",file.php.LOCAL.44625.php"和file.php "那我就不能编辑冲突了.

有人可以帮帮我吗?

git mergetool git-config sublimetext3

7
推荐指数
1
解决办法
4679
查看次数

标签 统计

git ×1

git-config ×1

mergetool ×1

sublimetext3 ×1