Created
December 10, 2010 00:47
-
-
Save certik/735587 to your computer and use it in GitHub Desktop.
.gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Ondrej Certik | |
email = [email protected] | |
[color] | |
ui = auto | |
interactive = true | |
[alias] | |
ci = commit | |
di = diff --color-words | |
st = status | |
co = checkout | |
st2 = status --untracked-files=no | |
gl = log --graph --abbrev-commit --pretty=oneline --decorate | |
whatis = "!f() { git show -s --pretty='format:%h (%s, %ai' \"$@\" | sed -e 's/ [012][0-9]:[0-5][0-9]:[0-5][0-9] [-+][0-9][0-9][0-9][0-9]$/)\\n/'; }; f" | |
who = "!sh -c 'git log -1 --pretty=\"format:%an <%ae>\" --author=\"$1\"' -" | |
lb = for-each-ref --format='%(refname)' \ | |
--sort=-authordate --count=8 refs/heads/ | |
rllog = log -g --date=relative | |
rlg = reflog show @{now} | |
sed = !git ls-files --stage | grep ^100 | awk '{print $4}' | xargs sed | |
addremove = "!git add .; git ls-files --deleted | xargs -r git rm" | |
weekreport = shortlog --since=1.weeks --author=ondrej | |
[push] | |
default = matching |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm liking a few of these.