Skip to content

Instantly share code, notes, and snippets.

@hisea
Created July 23, 2013 13:52
Show Gist options
  • Save hisea/6062497 to your computer and use it in GitHub Desktop.
Save hisea/6062497 to your computer and use it in GitHub Desktop.
# vim: ft=gitconfig
[sendemail]
multiedit = true
suppresscc = self
[color]
ui = true
[filemerge]
executable = vimdiff
[merge]
tool = vimdiff
[core]
whitespace = error,trailing-space,cr-at-eol,-blank-at-eof,tab-in-indent
excludesfile = .gitignore.local
editor = /usr/bin/vim
pager = /usr/bin/less -XRS -x4
[color "diff"]
whitespace = red reverse
[user]
name = FIXME
email = FIXME
[push]
default = simple
[grep]
extendedRegexp = true
[alias]
stat = status
co = checkout
ws = diff-index --color --check HEAD
dcommit = svn dcommit
p-log = log --patch --parents
f-log = whatchanged --graph --parents
q-log = log --no-merges --graph --pretty=format:'%Cred%h%Creset - %C(green)%aN%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
m-log = log --graph --pretty=format:'%Cred%h%Creset - %C(green)%aN%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
c-log = !sh -c 'git q-log --cherry-mark HEAD..$@' -
s-log = stash list --pretty=format:'%Cred%gd - %h%Creset - %C(green)%aN%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
svn-diff = diff remotes/git-svn
x = !sh -c 'gitx'
grep-all = !sh -c 'git rev-list --all | xargs git grep \"${1}\"' -
whois = !sh -c 'git log -i -1 --pretty=\"format::%an <%ae>\n\" --author=\"$1\"' -
up = "!sh -c 'if [ -d .git/svn ]; then git svn rebase; else git pull --rebase $@; fi' -"
cp = cherry-pick
commit = commit --verbose
igrep = grep --no-index
commit-amend = commit --amend -C HEAD
ca = !sh -c 'git commit-amend $@' -
[pack]
threads = 0
[branch]
autosetuprebase = always
[hooks "pre-commit"]
enabled = true
whitespace-rb = true
[hooks "post-checkout"]
enabled = true
update-submodules-rb = true
check-bundle-rb = true
[hooks "post-merge"]
enabled = true
update-submodules-rb = true
check-bundle-rb = true
[tig]
show-date = relative
line-graphics = utf8
tab-size = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment