Created
April 9, 2014 13:39
-
-
Save andyshora/10271732 to your computer and use it in GitHub Desktop.
Set Sublime Text 2 as the default Git merge tool to resolve conflicts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s "/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl | |
git config --global mergetool.sublime.cmd "sublime -w \$MERGED" | |
git config --global mergetool.sublime.trustExitCode false | |
git config --global merge.tool sublime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First line is for Mac only, on Linux, the
subl
binary is available for the CLI by defaultFix please
line 3 : the command should be
subl -w \$MERGED
Thanks for the snippet 👍