Created
August 1, 2019 20:41
-
-
Save danmcclain/67c9ed1fd2a78c18c61061d56c24905f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[core] | |
excludesfile = /Users/dan/configs/.gitignore | |
autocrlf = input | |
quotepath = false | |
pager = less -r | |
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
s = status | |
a = add | |
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[31;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[31;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[31;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[31;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R" | |
yoda = "push --force" | |
amend = "commit --amend" | |
pullr = pull --rebase | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
prify = config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*' | |
latest = for-each-ref --count=10 --sort=-committerdate --format='%(committerdate:short) %(refname:short)' | |
origin = remote add origin | |
delete-merged-branches = "!git branch --merged | grep -v master | grep -v $(git symbolic-ref --short HEAD) | xargs git branch -d" | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[fetch] | |
prune = true | |
[push] | |
default = current | |
[branch] | |
autosetuprebase = always | |
[difftool "Kaleidoscope"] | |
[diff] | |
[difftool] | |
[mergetool "Kaleidoscope"] | |
trustexitcode = true | |
[mergetool] | |
prompt = false | |
[merge] | |
tool = Kaleidoscope | |
[filter "media"] | |
clean = git-media-clean %f | |
smudge = git-media-smudge %f | |
[mergetool "Kaleidoscope"] | |
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot | |
[difftool "Kaleidoscope"] | |
[difftool] | |
[diff] | |
tool = Kaleidoscope | |
[difftool "Kaleidoscope"] | |
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\" | |
[difftool] | |
prompt = false | |
[ghi] | |
token = !security find-internet-password -a danmcclain -s github.com -l 'ghi token' -w |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment