【发布时间】:2013-05-23 21:50:36
【问题描述】:
我正在为我的 git 项目使用 (Windows) SourceTree。我可以在命令提示符或 Linux 终端中执行此操作。
但是,我想知道是否有一种很好的方式来以交互方式和视觉方式解决冲突。例如,如果 pull 检测到冲突,则弹出基于 GUI 的冲突工具(例如,P4Merge)。有可能吗?
我总是在手动解决冲突,这很痛苦。
例如,这是来自 SourceTree 的 git pull 消息。
git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin master
From W:\repo\
* branch master -> FETCH_HEAD
Updating 33c07bf..41e0249
error: Your local changes to the following files would be overwritten by merge:
foo.cpp
goo.cpp
goo.hpp
Please, commit your changes or stash them before you can merge.
Aborting
Completed with errors, see above.
【问题讨论】:
标签: git git-merge merge-conflict-resolution atlassian-sourcetree