Add git dotfiles

This commit is contained in:
Marvin Elsen 2024-08-30 15:22:41 +02:00
parent 3193589c51
commit 60ec0c24e3
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2
3 changed files with 63 additions and 0 deletions

54
git/.gitconfig Normal file
View File

@ -0,0 +1,54 @@
[core]
editor = nvim
autocrlf = input
pager = delta
excludeFiles = ~/.gitignore
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
light = false
line-numbers = true
[merge]
conflictstyle = zdiff3
[diff]
colorMoved = default
algorithm = histogram
[rebase]
autosquash = true
autostash = true
[push]
default = current
autoSetupRemote = true
[init]
defaultBranch = main
[commit]
verbose = true
[rerere]
enabled = true
[help]
autocorrect = 10
[log]
date = iso
[branch]
sort = -committerdate
[color]
ui = auto
[includeIf "gitdir:~/src/personal/**"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/src/work/**"]
path = ~/.gitconfig-work

7
git/.gitconfig-personal Normal file
View File

@ -0,0 +1,7 @@
[user]
name = Marvin Elsen
email = git@marvinelsen.com
signingKey = 7EBB0A920C1A1E0A52C246C6820672408CC318C2
[commit]
gpgSign = true

2
git/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea
.DS_Store