dotfiles/.gitconfig

79 lines
1.7 KiB
INI
Raw Permalink Normal View History

2021-04-17 06:49:53 +00:00
[core]
editor = nv
autocrlf = input
2022-03-13 05:06:49 +00:00
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
2021-04-17 06:49:53 +00:00
[user]
2022-03-13 05:06:49 +00:00
name = hedy
email = hedy@tilde.cafe # email overidden in [include]
signingkey = B51B5A8D1B176372 # and this
2021-04-17 06:49:53 +00:00
[init]
# I don't want people to complain and main is shorter to type so yeah
defaultBranch = main
2021-04-17 06:49:53 +00:00
[alias]
s = status
c = commit
b = branch
2022-03-13 05:06:49 +00:00
a = add
unadd = restore --staged
ls-alias = config --get-regexp alias
l = log --oneline
ll = log
ss = status -s
ch = checkout
chb = checkout -b
2023-06-30 14:12:25 +00:00
mylog = log --pretty=format:'%C(white)%h %C(blue)%an %C(green)%as %C(white)"%s"'
lgraph = log --oneline --graph --decorate --all
brd = branch -d
fame = !python3 -m gitfame
p = push
cam = commit -am # rarely used; cav and cv are now my best friends :>
cav = commit -av
cv = commit -v
2022-11-10 13:21:24 +00:00
cm = commit -m
coops = commit --amend --no-edit # commit... oops!
pushall = !git remote | xargs -L1 git push --all
# Same as pushall but not for all branches
pall = !git remote | xargs -L1 git push
2022-03-13 05:06:49 +00:00
d = diff
ds = diff --staged
2021-04-17 06:49:53 +00:00
[credential]
helper = store --file="$HOME/.git_creds"
helper = cache --timeout 90000
2021-04-17 06:49:53 +00:00
[help]
autocorrect = 30
2021-04-17 06:49:53 +00:00
[pull]
rebase = false
2021-04-17 06:49:53 +00:00
2021-06-26 23:59:11 +00:00
[commit]
2024-04-05 07:10:42 +00:00
gpgsign = true
2021-06-26 23:59:11 +00:00
2022-03-13 05:06:49 +00:00
# sendmail config in [include]
2021-04-17 06:49:53 +00:00
[include]
path = ~/.gitconfig-local
2021-04-17 06:49:53 +00:00
# diff-so-fancy
[color]
ui = true
2021-04-17 06:49:53 +00:00
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
2021-04-17 06:49:53 +00:00
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
2021-07-16 05:27:49 +00:00
[push]
followTags = true