fir3net
PPS-Firenetbanner-780.5x190-30-03-17

How to Colorize the Git Output within your Shell

Git provides various global configuration options for colorizing the output.[1]
In order to enable these options, run the following commands. This will, in turn update your ~/.gitconfig file.

git config --global color.ui always
git config --global color.branch always
git config --global color.diff always
git config --global color.interactive always
git config --global color.status always
git config --global color.grep always
git config --global color.pager true
git config --global color.decorate always
git config --global color.showbranch always

References

[1] https://git-scm.com/docs/git-config  

 

Tags: Linux, Shell, Git

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001