Created
November 9, 2012 22:49
-
-
Save a-b/4048837 to your computer and use it in GitHub Desktop.
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
[alias] | |
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f" | |
wc = whatchanged -p | |
f = fetch -v --all | |
s = status -sb | |
b = branch | |
ba = branch -a -v -v | |
bs = !git-branch-status | |
bsi = !git-branch-status -i | |
ci = commit | |
co = checkout | |
ass = add | |
d = diff -C | |
ds = diff -C --stat | |
dsp = diff -C --stat -p | |
dw = diff -C --color-words | |
ddw = diff -C --colo-words | |
l = log -C --decorate | |
ls = log -C --stat --decorate | |
lsp = log -C --stat -p --decorate | |
lg = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' | |
lga = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all | |
l19 = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all -19 | |
l50 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R" | |
l80 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R" | |
lg50 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-50s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R" | |
lg80 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-80s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R" | |
# show-upstream = !sh -c '\n\n test -n \"$1\" || set -- HEAD\n set -- \"$(git rev-parse --symbolic-full-name \"$1\")\"\n git for-each-ref --format=\"%(upstream:short)\" \"$1\"\n\n\n' - | |
lsd = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all --simplify-by-decoration | |
ru = remote update | |
sb = show-branch --sha1-name | |
ls-del = ls-files -d | |
ls-mod = ls-files -m | |
ls-new = ls-files --exclude-standard -o | |
ls-ign = ls-files --exclude-standard -o -i | |
ka = !gitk --all | |
kdo = !gitk --date-order | |
kado = !gitk --all --date-order | |
kasd = !gitk --all --simplify-by-decoration | |
[color] | |
status = true | |
diff = true | |
interactive = always | |
ui = always | |
branch = true | |
[push] | |
default = tracking |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment