DEV Community

Discussion on: Command Line Snippets do you keep handy?

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.

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:

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

ui = true
[color "diff"]
whitespace = red reverse