dotfiles/dot_gitconfig

28 lines
672 B
Plaintext
Raw Normal View History

2024-06-04 17:25:06 +02:00
# ~/.gitconfig
[includeIf "gitdir:~/src/work/"]
2024-06-04 17:25:06 +02:00
path = .gitconfig-work
[includeIf "gitdir:~/src/private/"]
2024-06-04 17:25:06 +02:00
path = .gitconfig-private
# Special Cases
2024-06-04 17:26:00 +02:00
[includeIf "gitdir:/Users/beisel/.local/share/chezmoi/"]
2024-06-04 17:25:06 +02:00
path = .gitconfig-private
# Fallthrough
[user]
email = florian.beisel@intersport.de
name = Florian Beisel
[gpg]
format = ssh
[core]
excludesfile = /Users/beisel/.gitignore_global
autocrlf = input
[push]
autoSetupRemote = true
[init]
defaultBranch = main
[alias]
accept-ours = "!f() { git checkout --ours -- \"${@:-.}\"; git add -u \"${@:-.}\"; }; f"
accept-theirs = "!f() { git checkout --theirs -- \"${@:-.}\"; git add -u \"${@:-.}\"; }; f"