Skip to content

Instantly share code, notes, and snippets.

@kunday
Created November 6, 2010 05:47
Show Gist options
  • Select an option

  • Save kunday/665224 to your computer and use it in GitHub Desktop.

Select an option

Save kunday/665224 to your computer and use it in GitHub Desktop.
My Git Config
[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
[alias]
y = diff "@{yesterday}"
w = whatchanged
c = commit
st = status
dc = diff --cached
co = checkout
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lgn = "!f() { git log --graph --pretty=format:'%Cred%H%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative $@ | git name-rev --stdin --name-only ; } ; f"
log1 = log --pretty=oneline --abbrev-commit --decorate
[format]
pretty = format:%Cred%h%Creset - %Cgreen%an -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset
date = relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment