dotfiles/.config/git/config
2026-07-03 09:41:20 +02:00

86 lines
1.8 KiB
Text

[user]
name = Ruben Hesselink
email = rubenhesselink@pm.me
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILc7+9RhPgkxGyZW1q1aXcb473aQVLwfXPj20zdSZTyE rubenhesselink@pm.me
[gpg]
format = ssh
[commit]
gpgSign = true
[core]
autocrlf = input # keep newlines as in input
compression = 9 # trade cpu for network
fsync = none
whitespace = error # threat incorrect whitespace as errors
[advice]
addEmptyPathspec = false
pushNonFastForward = false
statusHints = false
[blame]
coloring = highlightRecent
date = relative
[diff]
context = 3 # less context in diffs
renames = copies # detect copies as renames in diffs
interHunkContext = 10 # merge near hunks in diffs
[difftool]
prompt = false
[init]
defaultBranch = main
[log]
abbrevCommit = true # short commits
graphColors = blue,yellow,cyan,magenta,green,red
[status]
branch = true
short = true
showStash = true
showUntrackedFiles = all # show individual untracked files
[pager]
branch = false # no need to use pager for git branch
[push]
autoSetupRemote = true # easier to push new branches
default = current # push only current branch by default
followTags = true # push also tags
[pull]
rebase = true
[submodule]
fetchJobs = 16
[rebase]
autoStash = true
# Colors
[color "blame"]
highlightRecent = black bold,1 year ago,white,1 month ago,default,7 days ago,blue
[color "branch"]
current = magenta
local = default
remote = yellow
upstream = green
plain = blue
[color "diff"]
meta = black bold
frag = magenta
context = white
whitespace = yellow reverse
[interactive]
singlekey = true
[includeIf "gitdir:~/work/"]
path = ~/.config/git/work