Skip to content

Instantly share code, notes, and snippets.

@certik
Created December 10, 2010 00:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save certik/735587 to your computer and use it in GitHub Desktop.
Save certik/735587 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Ondrej Certik
email = ondrej@certik.cz
[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
@zanematthew
Copy link

I'm liking a few of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment