1. 程式人生 > >git merge tool setting

git merge tool setting

1.直接修改配置檔案.gitconfig

[user]
    name = ***
    email = ***@qq.com
[credential]
    helper = manager
[merge]
    tool = tortoisemerge
[mergetool]
    keepBackup = false
[mergetool "tortoisemerge"]
    path = C:\\Program Files\\TortoiseSVN\\bin\\TortoiseMerge.exe

2.通過命令配置

git config --global merge.tool 查詢當前merge tool名稱
git config --global merge.tool tortoisemerge 設定mergetool名稱
git config --global mergetool.tortoisemerge.path "C:\\Program Files\\TortoiseSVN\\bin\\TortoiseMerge.exe" 設定mergetool位置