5 ms·
> To add more color to your Git output: git config --global color.ui 1 Don't do this. The default (since 1.8.4) is auto, which adds colors if the output goes t
by teamhappy 12y ago
> To add more color to your Git output: git config --global color.ui 1
Don't do this. The default (since 1.8.4) is auto, which adds colors if the output goes to a terminal, but doesn't if the output goes somewhere else (e.g., a pipe). That is probably what you want (and already have).
I fell for this myself at some point. Somehow expecting there to be more colors, or full color support, or something like that — Nope.
- sheetjs 12y agoThe book has a nice discussion: http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration http://git-scm.com/book/en/v2/Customizing-Git-Git-Configurat... > The default setting is auto, which colors output when it’s going straight to a terminal, but omits the color-control codes when the output is redirected to a pipe or a file. > You can also set it to always to ignore the difference between terminals and pipes. You’ll rarely want this; in most scenarios, if you want color codes in your redirected output, you can instead pass a --color flag to the Git command to force it to use color codes. The default setting is almost always what you’ll want.
- gabrielhn 12y agogit config --global --unset color.ui
- sergiotapia 12y agoBetter yet, if you just want to get to work and have a sexy terminal, use https://github.com/mathiasbynens/dotfiles https://github.com/mathiasbynens/dotfiles To install on Mac just run: git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && source bootstrap.sh