dotfiles/.gitconfig

37 lines
946 B
INI
Raw Normal View History

[user]
2024-04-08 13:48:53 +01:00
email = afonso@francof.net
name = afonso
2024-05-01 18:53:15 +01:00
signingkey = ~/.ssh/touch_key
[includeIf "hasconfig:remote.*.url:https://github.com/**"]
2024-04-08 13:48:53 +01:00
path = ~/.gitconfig-gh
[includeIf "hasconfig:remote.*.url:ssh://git@github.com/**"]
2024-04-08 13:48:53 +01:00
path = ~/.gitconfig-gh
[filter "lfs"]
2024-04-08 13:48:53 +01:00
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[core]
2024-04-08 13:48:53 +01:00
autocrlf = input
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[commit]
2024-04-08 13:48:53 +01:00
gpgsign = true
[gpg]
2024-04-08 13:48:53 +01:00
format = ssh
[tag]
2024-04-08 13:48:53 +01:00
gpgsign = true
[pull]
2024-10-05 13:11:49 +01:00
rebase = true
[init]
2024-04-08 13:48:53 +01:00
defaultBranch = main
2024-05-26 16:18:00 +01:00
[alias]
count-lines = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #"