- 
      
- 
        Save falexandre/0484f3544ca1259b675e8c46b40f8b3b to your computer and use it in GitHub Desktop. 
    DiffMerge git mergetool & difftool setup
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Install http://download-us.sourcegear.com/DiffMerge/4.2.0/DiffMerge_4.2.0.697.stable_x64.msi | |
| // this is an adaptation of http://adventuresincoding.com/2010/04/how-to-setup-git-to-use-diffmerge | |
| Then run the following commands from the git bash | |
| git config --global merge.tool diffmerge | |
| git config --global mergetool.diffmerge.cmd "sgdm --merge --result=\$MERGED \$LOCAL \$BASE \$REMOTE" | |
| git config --global mergetool.diffmerge.trustExitCode true | |
| git config --global mergetool.keepBackup false | |
| git config --global diff.tool diffmerge | |
| git config --global difftool.diffmerge.cmd "sgdm \$LOCAL \$REMOTE" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment