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
Written by eranga bandara
Related protips
1 Response
Awesome, thanks.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#