git: do per-server identities properly

This commit is contained in:
Erin 2023-07-24 23:42:20 -04:00
parent d29244712d
commit 57a5eb0247
4 changed files with 14 additions and 5 deletions

View file

@ -1,8 +1,3 @@
# User identity
[user]
name = Erin
email = github@eritbh.me
# Command aliases
[alias]
l = log --oneline --decorate --graph

View file

@ -0,0 +1,4 @@
# settings for repositories in ~/src/git.ewin.moe
[user]
name = Erin
email = git@ewin.moe

View file

@ -0,0 +1,4 @@
# settings for repositories in ~/src/github.com
[user]
name = Erin
email = github@eritbh.me

View file

@ -1,2 +1,8 @@
[include]
path = ~/.config/git/personal.gitconfig
# Pull in additional config files for per-server identity
[includeIf "gitdir:~/src/github.com/"]
path = ~/.config/git/servers/github.com.gitconfig
[includeIf "gitdir:~/src/git.ewin.moe/"]
path = ~/.config/git/servers/git.ewin.moe.gitconfig