我想将我的git设置为使用diffmerge作为默认的比较编辑器,而不是默认的Unix diff。
git config --global diff.external diffmerge不幸的是,当我这么做时
git diff myfile.txt我从DiffMerge中得到了以下错误(以弹出窗口的形式):
Unexpected parameter '100644'
Command Line Arguments:
[0]: /Applications/DiffMerge.app/Contents/MacOS/DiffMerge
[1]: --nosplash
[2]: myfile.txt
[3]: /var/folders/_r/xjwgmj811yq5x7n7mb9z0pzc0000gn/T//pNIOTmyfile.txt
[4]: 95cbe334d3ec607ca7f7bd3fd16d630271e9d0af
[5]: 100644
[6]: myfile.txt
[7]: 0000000000000000000000000000000000000000
[8]: 100644你能说出我做错了什么吗?
发布于 2014-02-05 02:55:22
改用这个
git config --global diff.tool diffmerge
git config --global difftool.diffmerge.cmd "diffmerge \$LOCAL \$REMOTE"有大量的博客文章和文章解释了如何将diffmerge配置为默认的diff或merge工具。有关示例,请参阅http://adventuresincoding.com/2010/04/how-to-setup-git-to-use-diffmerge/
https://stackoverflow.com/questions/21560658
复制相似问题