9kxdhq
Last Updated: February 25, 2016
·
1.436K
· itseranga
892414 10151468467596730 1847316210 o

Enable colors in git command line

git
  • 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

Picture

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

Picture

Say Thanks
Respond

1 Response
Add your response

15727
Sloth

Awesome, thanks.

over 1 year ago ·
Filed Under