title: How to get DiffMerge configured to work with Git on Windows 7 or Windows 2012?
body: <p>So I've seen a few questions about getting DiffMerge to be the <code>mergetool</code> and <code>difftool</code> for git.  Essentially it comes down to having DiffMerge (sgdm.exe) in your <code>PATH</code> and a <code>.gitconfig</code> that looks like:</p>
  
  <pre><code>[diff]
      tool = DiffMerge
  [difftool "DiffMerge"]
      cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' "$LOCAL" "$REMOTE"
  [merge]
      tool = DiffMerge
  [mergetool "DiffMerge"]
      cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' -merge -result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
      trustExitCode = true
      keepBackup = false
  </code></pre>
  
  <p>When I run <code>git difftool file1 file2</code>, nothing happens.  No error code, no launching of DiffMerge.  From Git Bash and a Windows Command Line, I can run <code>sgdm file1 file2</code> and DiffMerge comes up.</p>
  
  <p>I've modified the <code>cmd</code> in the <code>.gitconfig</code> to not have a path or extensions (e.g. <code>sgdm</code> only), but still to no avail.</p>
  
  <p>Has anyone encountered this?  Are there some obvious things I'm missing?  I feel like I'm missing something obvious.</p>