Last Updated: February 25, 2016
· itseranga

Enable colors in git command line

  • In order to setup colors in git terminal we have to add color settings to git global configuration file
  • git global configuration file locates as ~/.gitconfig
  • In order to add color settings to global configuration file execute following commands from your terminal
git config --global color.branch auto
git config --global color.diff auto
git config --global color.status auto
git config --global color.ui auto
  • These settings will be added to git global configurations. Now global ~/.gitconfig file looks like below


  • Following is the sample output of git terminal after adding above color settings


1 Response
Add your response

Awesome, thanks.

over 1 year ago ·