title: Multiple diff Tools
body: <p>I had set up my <em>git</em> to use P4Merge as the diff tool, as described <a href="http://progit.org/book/ch7-1.html">here</a>. So, <code>git diff</code> will trigger the P4Merge.</p>
  
  <p>However, sometimes I find working with the UNIX <code>diff</code> is faster and more efficient (because no GUI involved). How do I set up git so that I can easily choose which diff tool I would like to trigger? Is this possible? For example:</p>
  
  <pre><code>$ git diff     # to trigger P4Merge
  $ git difftool # to trigger UNIX diff
  </code></pre>
  
  <p>My <code>git config --list</code>:</p>
  
  <pre><code>code.editor=vi
  merge.tool=p4merge
  mergetool.extMerge.cmd=extMerge $BASE $LOCAL $REMOTE $MERGED
  mergetool.extMerge.trustexitcode=false
  diff.external=extDiff
  mergetool.prompt=false
  mergetool.keepbackup=false
  mergetool.p4merge.path=/usr/local/bin/p4merge
  </code></pre>