Skip to content

Instantly share code, notes, and snippets.

@halcyondude
Created February 3, 2019 21:41
Show Gist options
  • Save halcyondude/d580f65352b89fd4f13dfb22e55c8127 to your computer and use it in GitHub Desktop.
Save halcyondude/d580f65352b89fd4f13dfb22e55c8127 to your computer and use it in GitHub Desktop.
halcyondude's gitconfig
[user]
email = myoung@everquote.com
name = Matt Young
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
ci = commit
co = checkout
d = diff
lc = "log ORIG_HEAD.. --stat --no-merges"
undo = "reset --hard"
llog = "log --date=local"
changes = "diff --name-status -r"
diffstat = "diff --stat -r"
new = "!sh -c 'git log $1@{1}..$1@{0} $@'"
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
incoming = "!git remote update -p"
st = "status -sb"
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
editor = code --wait
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[push]
default = current
[branch]
autosetuprebase = always
[url "git@github.com:"]
insteadOf = https://github.com/
[github]
user = halcyondude
[ghi]
token = !security find-internet-password -a halcyondude -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