1. 程式人生 > >配置TortoiseGit為git merge/diff tool

配置TortoiseGit為git merge/diff tool

lse 令行 .exe ack remote 設置 too rto prompt

#設置prompt backup
git config --global difftool.prompt false
git config --global mergetool.prompt false
git config --global mergetool.keepBackup false

#tortoise

#通過命令行設置git merge tool tortoisemerge
git config --global merge.tool tortoisemerge
git config --global mergetool.tortoisemerge.path "C:\Program Files\TortoiseGit\bin\TortoiseGitMerge.exe" #可不設置

#通過命令行設置git difftool
#TortoiseGitMerge BaseFilePath MyFilePath [ TheirFilePath ]
git config --global diff.tool tortoisediff
git config --global difftool.tortoisediff.cmd "TortoiseGitMerge \$LOCAL \$REMOTE"
git config --global difftool.tortoisediff.path "C:\Program Files\TortoiseGit\bin\TortoiseGitMerge.exe" #可不設置

配置TortoiseGit為git merge/diff tool