I\'m following the docs from the Git configuration page and trying to apply this to my Windows 7 environment. When I run say, \"git diff file0\" I get an error in P4Merge:>
Looks like a mistake in your gitconfig. Have you seen this Stackoverflow question?
I blogged about setting up P4Merge ages ago before git started supporting it directly but it still works if you are stuck: http://danlimerick.wordpress.com/2011/06/19/git-for-window-tip-use-p4merge-as-mergetool/
EDIT: To be more explicit, it is the escaping that is your problem. In my .gitconfig file for P4Merge it looks like this:
cmd = p4merge.exe /\"$BASE/\" /\"$LOCAL/\" /\"$REMOTE/\" /\"$MERGED/\"
So try this:
cmd = extMerge /\"$BASE/\" /\"$LOCAL/\" /\"$REMOTE/\" /\"$MERGED/\"
There is a difference with escaping if you set it from the command line or make the change directly in your .gitconfig file.