I follow this simple setup with meld. Meld is free and opensource diff tool. You will see nice side by side comparison of files and directory for any code changes.
- Install meld in your Linux using yum/apt.
- Add following line in your ~/.gitconfig file
[diff]
tool = meld
- Go to your code repo and type following command to see difference between last committed changes and current working directory (Unstaged uncommited changes)
git difftool --dir-diff ./
- To see difference between last committed code and staged code, use following command
git difftool --cached --dir-diff ./