git - colored diff, branch, etc output by default

To have colored git commands output, use the following command:

git config color.ui true

or (globally)

git config --global color.ui true

Alternatively, you can set color for individual git commands.

git config color.branch auto
git config color.diff auto
git config color.interactive auto
git config color.status auto

See also color.* options in the git config docs.

git book

Color highlighted diffs with git, svn and cvs

profile for Boris Serebrov on Stack Exchange, a network of free, community-driven Q&A sites