ubuntu trusty / git diff color

ubuntu trusty / git diff color

  • Written by
    Walter Doekes
  • Published on

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

Back to overview Newer post: openssh / nagle / too much buffering Older post: Heart bleed; OpenSSL security issue