Dolphin的博客

meld使用

简介

Meld is a visual diff and merge tool targeted at developers. Meld helps you compare files, directories, and version controlled projects. It provides two- and three-way comparison of both files and directories, and has support for many popular version control systems.

Meld helps you review code changes and understand patches. It might even help you to figure out what is going on in that merge you keep avoiding.

安装与配置

输入如下命令安装:

1
2
3
4
#在Fedora 24中安装
dnf install meld -y
#在Ubuntu 16.04中安装
sudo apt install meld -y

配置:

1
2
#配置meld为默认的合并工具(Merge Tool)
git config --global merge.tool meld

使用合并工具:

1
2
#使用merge tool合并
git mergetool

可以直接键入meld命令打开meld的GUI。