|
|
|
|
|
by augusto-moura
2052 days ago
|
|
Git has conditional includes based on path[1]. My configuration is like: On ~/.gitconfig [user]
name = personal
email = personal@example.com
[includeIF "gitdir:~/workspace/"]
path = ~/work.gitconfig
Then on ~/work.gitconfig [user]
name = workname
email = work@example.com
[1] https://git-scm.com/docs/git-config#_conditional_includes |
|