the wiki of cscosine
sudo apt update
sudo apt install meld
git config --global merge.tool meld
git config --global mergetool.meld.path meld
git config --global mergetool.keepBackup false
git config --global mergetool.prompt false
git config --global diff.tool meld
git config --global difftool.prompt false
git mergetool
Opens Meld with LOCAL, BASE, REMOTE, MERGED view
git difftool
Opens Meld to compare changes between commits or branches