首先官网下载[url]http://www.sourcegear.com/diffmerge/[/url],直接安装即可
然后在console里面执行:
执行成功后能使用git 来diff了
Merge也ok:
然后在console里面执行:
git config --global diff.tool diffmerge
git config --global difftool.diffmerge.cmd 'diffmerge "$LOCAL" "$REMOTE"'
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.cmd 'diffmerge --merge --result="$MERGED" "$LOCAL" "$(if test -f "$BASE"; then echo "$BASE"; else echo "$LOCAL"; fi)" "$REMOTE"'
git config --global mergetool.diffmerge.trustExitCode true
执行成功后能使用git 来diff了
# diff the local file.m against the checked-in version
git difftool file.m
# diff the local file.m against the version in some-feature-branch
git difftool some-feature-branch file.m
# diff the file.m from the Build-54 tag to the Build-55 tag
git difftool Build-54..Build-55 file.m
Merge也ok:
git mergetool
本文详细介绍如何通过SourceGear DiffMerge工具配置Git的diff与merge功能。指导读者完成下载、安装及配置步骤,并演示如何使用Git命令进行文件差异比较及合并冲突解决。
3662

被折叠的 条评论
为什么被折叠?



