Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created February 6, 2013 18:10
Show Gist options
  • Save brandon-beacher/4724552 to your computer and use it in GitHub Desktop.
Save brandon-beacher/4724552 to your computer and use it in GitHub Desktop.
#!/bin/bash
TMP_FILE=`mktemp /tmp/XXXXXX`
git diff "$1" "$2" > "$TMP_FILE.diff"
~/bin/subl -w -n "$TMP_FILE.diff"
@brandon-beacher
Copy link
Author

This goes into a file somewhere in your path named ksdiff.

Mine is at /usr/local/bin/ksdiff

This tricks gitbox into using sublime for diffs.

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