Skip to content

Instantly share code, notes, and snippets.

@joshbeckman
Last active August 29, 2015 13:57
Show Gist options
  • Save joshbeckman/9418565 to your computer and use it in GitHub Desktop.
Save joshbeckman/9418565 to your computer and use it in GitHub Desktop.
Useful git/bash functions
git config color.status always
///////////////////////
// add to ~/.gitconfig
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
dh = diff --color HEAD
[color]
branch = auto
diff = auto
status = 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment