Skip to content

Instantly share code, notes, and snippets.

@clifton
Created March 22, 2012 17:09
Show Gist options
  • Select an option

  • Save clifton/2159864 to your computer and use it in GitHub Desktop.

Select an option

Save clifton/2159864 to your computer and use it in GitHub Desktop.
[apply]
whitespace = nowarn
[alias]
stash-peek = diff stash@{0}^1 stash@{0}
stash-pick = checkout stash@{0} --
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[35;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[35;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[35;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[35;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"alias]
st = status -sd
c = commit -v
co = checkout
b = branch
cb = checkout -b
[core]
excludesfile = ~/.gitignore
whitespace = fix,space-before-tab,tab-in-indent,trailing-space
autocrlf = false
[color]
ui = auto
[merge]
log = true
stat = true
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[user]
name = "Clifton King"
email = [email protected]
[github]
user = clifton
token = [REDACTED]
; [hub]
; protocol = https
[advice]
pushNonFastForward = false
statusHints = false
[branch]
autosetupmerge = true
autosetuprebase = always
[push]
default = upstream
[rerere]
enabled = true
[diff]
noprefix = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment