Git difftool 不工作 Windows 10 Git Bash
Git difftool not working Windows 10 Git Bash
我安装了 diffmerge 并将其粘贴到 C:/Users
文件夹中的 .gitconfig
文件中。
[diff]
tool = diffmerge
[difftool "diffmerge"]
cmd = C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe\"$LOCAL\" \"$REMOTE\"
[merge]
tool = diffmerge
[mergetool "diffmerge"]
trustExitCode = true
cmd = C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe-merge -result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
但是现在当我在 git bash 中使用 difftool
时,我得到了这个
/mingw64/libexec/git-core/git-mergetool--lib: line 128: C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exeC:\Users\Anas\AppData\Local\Temp/hhqGyv_calc.py: No such file or directory
fatal: external diff died, stopping at calc.py
我安装了 diffmerge 并将其粘贴到 C:/Users
文件夹中的 .gitconfig
文件中。
[diff]
tool = diffmerge
[difftool "diffmerge"]
cmd = C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe\"$LOCAL\" \"$REMOTE\"
[merge]
tool = diffmerge
[mergetool "diffmerge"]
trustExitCode = true
cmd = C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe-merge -result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
但是现在当我在 git bash 中使用 difftool
时,我得到了这个
/mingw64/libexec/git-core/git-mergetool--lib: line 128: C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exeC:\Users\Anas\AppData\Local\Temp/hhqGyv_calc.py: No such file or directory
fatal: external diff died, stopping at calc.py