dotfiles/gitconfig

93 lines
2.1 KiB
Plaintext

[include]
# local and/or misc changes not committed to Git:
path = .gitconfig.local
[alias]
aa = add .
acf = !git add . && git cf
adp = add -p
an = add -N .
b = branch
bn = rev-parse --abbrev-ref HEAD
br = branch
ca = commit --amend
cdf = clean -df
cdfn = clean -dfn
cf = !git commit --fixup $(git log --invert-grep --grep fixup -n1 --oneline --format=format:%h)
chp = checkout -p
ci = commit
cl = clone
cltms = !sh -c 'cd $HOME/dev && git clone $1 && cd $(basename $1 .git) && tmuxsess' --
co = checkout
cob = !git checkout $(git branch | fzf)
cp = cherry-pick
d = diff
dom = diff origin/master
drb = !git diff $(git rb)
ds = diff --staged
f = fetch
fixom = rebase -i --autosquash origin/master
fixup = rebase -i --autosquash
l = log
ll = log --oneline -n 5
ls = !git branch --format '%(refname:short)' | fzf
mr = !git merge $(git rb)
mt = merge -s recursive -X theirs
nb = checkout -b
nuke1 = reset --hard HEAD^
nuke = reset --hard
p = push
pf = push --force
pl = pull
plr = pull --rebase
ph = push -u origin HEAD
pr = diff origin/master
prs = diff --stat origin/master
ra = rebase --abort
rb = !git rev-parse --abbrev-ref --symbolic-full-name @{u}
rc = rebase --continue
re = rebase
rh = reset --hard
rom = rebase origin/master
rr = !git reset --hard $(git rb)
s = status
shp = show -p
sl = stash list
sq = merge --squash
sqt = merge --squash -s recursive -X theirs
ss = stash save
st = status
sy = !gitsha1yank -s
sum = show --stat
undo = reset --soft HEAD^
sshp = stash show -p
[user]
email = rob@netflux.io
name = Rob Watson
[core]
editor = vim
quotePath = false
commitGraph = true
pager = delta
[color]
ui = auto
[pull]
ff = only
[init]
defaultBranch = development
[credential "https://github.com"]
helper = !gh auth git-credential
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[interactive]
diffFilter = delta --color-only
[delta]
side-by-side = true
plus-style = 'syntax "#142e20"'
zero-style = 'syntax "#1d1f21" dim'
minus-style = 'syntax "#36181d"'
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none