git diff with meld

Meld is a diff tool, how to use it with git?

1. install meld

sudo apt-get install meld

2.need a script

sudo gedit /bin/git-meld.sh

#!/bin/sh
meld $2 $5

sudo chmod +x /bin/git-meld.sh

3.git config

git config --global diff.external /bin/git-meld.sh


Okay, enjoy.



你可能感兴趣的:(git diff with meld)