Skip to content

Instantly share code, notes, and snippets.

@jklmli
Last active August 19, 2017 22:50
Show Gist options
  • Save jklmli/5ebb010f3c492c18aaa6ea91adf3f658 to your computer and use it in GitHub Desktop.
Save jklmli/5ebb010f3c492c18aaa6ea91adf3f658 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
email = redacted@redacted
name = Kevin Li
[alias]
df = diff --stat
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
rec = !git for-each-ref --sort='-authordate:relative' --format='%(color:red)%(objectname:short) %(color:white)- %(color:yellow)(%(refname:short)) %(color:white)%(subject) %(color:green)(%(authordate:relative)) %(color:bold blue)<%(authorname)>' refs/heads | more -R
sh = show --stat
st = status -sb
who = shortlog -s --
l = log --pretty=format:'%C(yellow)%h%C(white) %an <%ae> %>|(80)%ai%Creset%n%C(bold)%w(0,4,4)%s%C(reset)%n%+b'
ll = log --stat
lp = log -p
[diff]
indentHeuristic = true
[core]
pager = diff-so-fancy | less --tabs=2
excludesfile = ~/.gitignore
autocrlf = false
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = green bold
newHighlight = "green bold 22"
[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