DEV Community

Discussion on: Command Line Snippets do you keep handy?

Collapse
nickytonline profile image
Nick Taylor

I rely heavily on git aliases. I find it really speeds up my workflow. For those interested, here’s my git aliases.

Collapse
jrohatiner profile image
Judith Author • Edited on

Great list! You reminded me of how tweaks to my config have helped a lot too! Here's how to add colors to your console by adding this to your config:

Add colors to your ~/.gitconfig file:

[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan

And add this too:
Highlight whitespace in diffs

[color]
ui = true
[color "diff"]
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol