git: do per-server identities properly
This commit is contained in:
parent
d29244712d
commit
57a5eb0247
|
@ -1,8 +1,3 @@
|
|||
# User identity
|
||||
[user]
|
||||
name = Erin
|
||||
email = github@eritbh.me
|
||||
|
||||
# Command aliases
|
||||
[alias]
|
||||
l = log --oneline --decorate --graph
|
||||
|
|
4
git/.config/git/servers/git.ewin.moe.gitconfig
Normal file
4
git/.config/git/servers/git.ewin.moe.gitconfig
Normal file
|
@ -0,0 +1,4 @@
|
|||
# settings for repositories in ~/src/git.ewin.moe
|
||||
[user]
|
||||
name = Erin
|
||||
email = git@ewin.moe
|
4
git/.config/git/servers/github.com.gitconfig
Normal file
4
git/.config/git/servers/github.com.gitconfig
Normal file
|
@ -0,0 +1,4 @@
|
|||
# settings for repositories in ~/src/github.com
|
||||
[user]
|
||||
name = Erin
|
||||
email = github@eritbh.me
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue