Skip to content

Instantly share code, notes, and snippets.

@luismayta
Created April 25, 2012 16:29
Show Gist options
  • Select an option

  • Save luismayta/2491089 to your computer and use it in GitHub Desktop.

Select an option

Save luismayta/2491089 to your computer and use it in GitHub Desktop.
configurar p4merge para git
p4merge*
Create a new text file in /usr/local/bin called p4merge and add the following lines:
#!/bin/sh
/home/usuario/Contents/MacOS/p4merge $*
Make the script executable by entering this command:
chmod +x p4merge
p4diff*
Create a new text file in /usr/local/bin called p4diff and add the following lines:
#!/bin/sh
[ $# -eq 7 ] && /usr/local/bin/p4merge "$2" "$5"
Make the script executable by entering this command:
chmod +x p4diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment