Using Meld to compare code changes with Git

Install Meld $ sudo apt-get install meld Create a script in your home directory. $ nano ~/diff.py Paste this in #!/usr/bin/python import sys import os os.system('meld "%s" "%s"' % (sys.argv[2], sys.argv[5])) Set script to be executable $ sudo chmod ug+x ~/diff.py Run this: git config --global diff.external ~/diff.py Now you should be able to run git diff and it should load meld. $ git diff git_filename_to_diff References: http://nathanhoad.net/how-to-meld-for-git-diffs-in-ubuntu-hardy/

Comments

Popular posts from this blog

PHP timezones explained

iPhone Internet Tethering settings