On my recently upgraded Ubuntu Trusty (14.04) machine, git diff started producing colorized output.

That's nice, but it'd be even nicer if it recognised that I'm using a dark background.

Put this in your ~/.gitconfig. This colorscheme is the one you're used to from vim.

[color "diff"]
        meta = green bold
        frag = yellow bold
        old = red bold
        new = cyan bold

git trusty ubuntu