dotfiles/.gitconfig

69 lines
1.3 KiB
INI

[core]
editor = nv
autocrlf = input
excludesfile = /home/hedy/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
[user]
name = Hedy Li
email = hedy@tilde.cafe # email overidden in [include]
signingkey = B51B5A8D1B176372 # and this
[init]
# I don't want people to complain and main is shorter to type so yeah
defaultBranch = main
[alias]
s = status
c = commit
b = branch
ls-alias = config --get-regexp alias
l = log --oneline
ll = log
ss = status -s
ch = checkout
chb = checkout -b
mylog = log --pretty=format:'%C(yellow)%h %C(bold blue)%an, %C(green)%ar: %C(white)"%s"'
lgraph = log --oneline --graph --decorate --all
brd = branch -d
fame = !python3 -m gitfame
p = push
cmam = commit -am
pushall = !git remote | xargs -L1 git push --all
[credential]
helper = store --file="$HOME/.git_creds"
helper = cache --timeout 90000
[help]
autocorrect = 30
[pull]
rebase = false
[commit]
gpgsign = true
# sendmail conig in [include]
[include]
path = ~/.gitconfig-local
# diff-so-fancy
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[push]
followTags = true