Skip to content

Instantly share code, notes, and snippets.

@liuhenry
Created February 7, 2014 19:07
Show Gist options
  • Select an option

  • Save liuhenry/8869572 to your computer and use it in GitHub Desktop.

Select an option

Save liuhenry/8869572 to your computer and use it in GitHub Desktop.
[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
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
whitespace = fix,-ident-with-non-tab,trailing-space,cr-at-eol
excludesfile = /Users/liuhenry/.gitignore_global
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
ls = ls-files
ign = ls-files -o -i --exclude=standard
hist = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
stat = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --stat
ghist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
gstat = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --stat
[push]
default = current
[diff]
tool = mvimdiff
[difftool "mvimdiff"]
cmd = mvim -f -d \"$LOCAL\" \"$REMOTE\"
[merge]
tool = mvimdiff
[mergetool "mvimdiff"]
cmd = mvim -c \"Gdiff\" $MERGED # use fugitive.vim for 3-way merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment