Skip to content

Instantly share code, notes, and snippets.

@wayneseymour
Created March 10, 2014 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wayneseymour/9467476 to your computer and use it in GitHub Desktop.
Save wayneseymour/9467476 to your computer and use it in GitHub Desktop.
Steps to use Sublime Text 2 as a merge tool (I did this on my box at work [a windows machine, sadly])
# first, add "sublime dir" to the PATH:
export SUBL_HOME=/c/dev/tools/sublimetext2
export PATH=$SUBL_HOME:$PATH
# second, add a softlink to "subl"
cd $SUBL_HOME
ln -s sublime_text.exe subl
# thrid, conf "subl" as your merge tool
git config --global mergetool.sublime.cmd "subl -w \$MERGED"
git config --global mergetool.sublime.trustExitCode false
git config --global merge.tool sublime
# finally, run the merge to make sure what we just did worked
# -- should fire up sublime text
git mergetool -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment