Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Sublime text editor to resolve git merge conflicts? [closed]

I have installed "Submerge", but it can only care to revision. Git already changed to file to "need to merge" status. I know there are other tools can do that, but I am just wondering if I can do this just using Sublime, thanks!

like image 691
David Liu Avatar asked Sep 24 '13 18:09

David Liu


2 Answers

Regarding how to use Sublimerge:

I'm not sure exactly how to do it, but I'm getting closer.

First, you need a handy path to the Sublime binary:

mkdir ~/bin
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Then, in your git GUI or git command line, configure ~/bin/subl as your merge tool.

I use Source Tree, and I haven't figured exactly how to best use Sublimerge, but I managed to open both versions, merge them, and then I have to do a bit of manual work.

Still not smooth, but better than nothing!

like image 131
superiggy Avatar answered Nov 11 '22 09:11

superiggy


There is a tool called Sublimerge that could fit your needs.

like image 42
Pigueiras Avatar answered Nov 11 '22 08:11

Pigueiras