Most likely you have set one of the git variables color.ui
or color.diff
to always
, and should change that back to true
so that you get coloured diffs when useful (in a shell) but not when not useful (pretty much everywhere else, including magit).
Or better yet unset the variable completely using e.g. git config --unset color.ui
.