Skip to content

Instantly share code, notes, and snippets.

@amejiarosario
Created June 14, 2012 17:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amejiarosario/2931603 to your computer and use it in GitHub Desktop.
Save amejiarosario/2931603 to your computer and use it in GitHub Desktop.
Git config
[user]
email = adriansky@gmail.com
name = Adrian Mejia
[color]
ui = auto
interactive = true
[alias]
ci = commit
di = diff --color-words
st = status
co = checkout
ci = commit
st2 = status --untracked-files=no
br = branch
df = diff
dc = diff --cache
re = rebase
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lp = log --graph --format='%Cred%h (%cr) %Cgreen%cn: %Cblue%s' --all --decorate
lb = for-each-ref --format='%(refname)' \
--sort=-authordate --count=8 refs/heads/
rlg = reflog show @{now}
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\"' -"
rllog = log -g --date=relativ
rlg = reflog show @{now}
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lo = log --color --graph --pretty="format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit"
cat = cat-file -t
type = cat-file -t
dump = cat-file -p
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