Skip to content

Instantly share code, notes, and snippets.

Created November 9, 2011 08:36
  • Star 11 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save daredude/1350855 to your computer and use it in GitHub Desktop.
Setup p4merge as mergetool and difftool for git in windows (found here:
git config --global merge.tool p4merge
git config --global mergetool.p4merge.cmd 'p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"'
git config --global diff.tool p4merge
git config --global difftool.p4merge.cmd 'p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"'
Copy link

I had a 'path/to/my/file is (or point to) an invalid file' error. According to the solution I found, I guess the quotes mess things up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment