Re:A list of cool features of Git and GitHub
by sheetjs on Sunday January 18, 2015 @01:53PM
(#8908370)
The book has a nice discussion: 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.
Re:A list of cool features of Git and GitHub
by gabrielhn on Sunday January 18, 2015 @04:47PM
(#8909054)
git config --global --unset color.ui
Re:A list of cool features of Git and GitHub
by sergiotapia on Sunday January 18, 2015 @10:06PM
(#8910072)
Better yet, if you just want to get to work and have a sexy terminal, use https://github.com/mathiasbynens/dotfiles
To install on Mac just run:
git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && source bootstrap.sh
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.