如何使用 Sublime 文本编辑器解决 git 合并冲突?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18989457/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use Sublime text editor to resolve git merge conflicts?
提问by David Liu
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!
我已经安装了“Submerge”,但它只能关心修订。Git 已将文件更改为“需要合并”状态。我知道还有其他工具可以做到这一点,但我只是想知道我是否可以仅使用 Sublime 来做到这一点,谢谢!
回答by superiggy
Regarding how to use Sublimerge:
关于如何使用 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:
首先,您需要一个方便的 Sublime 二进制文件路径:
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.
然后,在您的 git GUI 或 git 命令行中,将 ~/bin/subl 配置为您的合并工具。
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.
我使用 Source Tree,我还没有弄清楚如何最好地使用 Sublimerge,但我设法打开两个版本,合并它们,然后我必须做一些手动工作。
Still not smooth, but better than nothing!
仍然不顺利,但总比没有好!
回答by Pigueiras
There is a tool called Sublimergethat could fit your needs.
有一个名为Sublimerge的工具可以满足您的需求。

