Git Config Cookbook/Enable colors

Use color output automatically.

Section: Identity and UX Defaults

Enable colors

bash
bash
git config --global color.ui auto

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Identity and UX Defaults
Set repo-specific user name
Override global identity in one repository.
OpenIn sheetbashsame section
Set pager
Customize pager behavior.
OpenIn sheetbashsame section
Set init.defaultBranch
Choose default branch name for new repos.
OpenIn sheetbashsame section
Display columns
Format list commands in columns where supported.
OpenIn sheetbashsame section
Enable help autocorrect
Suggest or autocorrect mistyped commands.
OpenIn sheetbashsame section
Require fast-forward pulls
Fail pull if it would create a merge commit.
OpenIn sheetbash1 tag match