Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Good answer, but I wanted to change the colors of new lines and old (deleted) lines too, so I did the research and expanded upon your answer here: stackoverflow.com/a/61993060/4561887 Commented May 24, 2020 at 23:19
  • 1
    Or if you want to avoid having to edit your global config (perhaps for a one off): git -c color.diff.meta=blue diff <file1> <file2>
    – Cole
    Commented Feb 21, 2021 at 5:40
  • Great answer! Color bind guys like me, do: git config --global color.diff.old blue Commented Oct 1, 2022 at 9:06