我已经完成了git config --global merge.tool meld # opendiff is another option here
git mergetool -y
并且正常的合并标记现在可以在原始文件中使用并在Intellij项目中可见:
有没有办法显示此文件的三个面板合并冲突解决对话框?
注意:有一个命令行工具可以很好地执行此操作 - 但我实际上在Intellij中寻找某种方式。命令行方法是通过function ViewModel_icon() {
self2 = this;
self2.tasks = ko.observableArray([
{
task: ko.observable("Task1"),
time: ko.observable("Saturday, 5 May 2018"),
status: ko.observable("active"),
priority: ko.observable("medium"),
urgent: ko.observable(false)
}
]);
self2.checkUrgent = function (data){
if(!data.urgent()){
data.urgent(true);
}
}
}
var VM1 = new ViewModel_icon();
ko.applyBindings(VM1);
:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<div id="icon" data-bind='foreach: tasks'>
<i class="fas fa-exclamation-circle" data-bind='click: $parent.checkUrgent, style: {"color" : $data.urgent() ? "red" : "black"}'></i>
</div>