Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling Git syntax highlighting for Mac's terminal

I miss the Git syntax highlighting I had on Windows for every "git .*" command like green staged filenames, some bolding, etc.

How do I enable Git syntax highlighting for Mac's terminal?

like image 863
thewillcole Avatar asked Nov 15 '11 04:11

thewillcole


People also ask

What command should you use to ensure all projects you work on have black and white output in Git?

If you've committed whitespace issues but haven't yet pushed upstream, you can run git rebase --whitespace=fix to have Git automatically fix whitespace issues as it's rewriting the patches.


2 Answers

git config --global color.ui auto 
like image 108
rob mayoff Avatar answered Sep 28 '22 08:09

rob mayoff


For seeing different colors for the diff command, use:

git config --global color.diff true 

To globally change colors for most commands, use:

git config --global color.ui true 
like image 35
DemitryT Avatar answered Sep 28 '22 07:09

DemitryT