Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (76 sloc) 2.07 KB
[user]
name = Jesper Kjeldgaard
email = thejspr@gmail.com
[github]
user = thejspr
[color]
ui = auto
[push]
default = tracking
[core]
excludesfile = ~/.gitignore
editor = NVIM_TUI_ENABLE_TRUE_COLOR=1 nvim
whitespace = trailing-space,space-before-tab
ignorecase = false
pager = diff-so-fancy | less --tabs=4 -RFX
[alias]
a = add --all
aa = add -A
ac = !git add . && git commit -am
amend = commit -a --amend --no-edit
amendf = !git add -A && git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
b = branch
c = commit -v
ca = !git add -A && git commit -v
co = checkout
ci = !hub ci-status -v | awk '{print $2}' | xargs open
d = !clear && git diff
dc = diff --cached
ds = diff --stat
edit = !git status -sb | tail +2 | grep -v '^ D' | awk '{print $2}' | xargs -o nvim
gc = gc --prune=now
l = log --oneline --decorate -16
ll = log --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr) %C(black)<%an>%Creset' \
--abbrev-commit \
--date=relative -16
ms = checkout master
mt = mergetool
pc = !FORCE=1 git push -u origin $(git symbolic-ref --short HEAD)
r = remote
rc = !git add -A && git rebase --continue
rh = reset --hard
wip = !git add --all && git commit -m 'WIP'
undo = reset head~1 --mixed
cl = !git co master && git pull && git remote prune origin && git bclean && bundle install --quiet
bclean = "!f() { git branch --merged ${1-master} | grep -vE '(master|production|release|develop)' | xargs git branch -d; }; f"
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
[advice]
pushNonFastForward = false
statusHints = false
[diff]
renames = copies
mnemonicprefix = true
algorithm = patience
[gc]
auto = 0
[heroku]
account = me
tool = vimdiff
[mergetool]
prompt = false
keepBackup = false
[diff]
tool = vimdiff
[difftool]
prompt = false
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[credential]
helper = osxkeychain
[merge]
tool = opendiff