Created
August 4, 2024 14:23
-
-
Save lindhe/cd08c293af2e0cd0b14621b7f68e32ca to your computer and use it in GitHub Desktop.
A gitconfig to dynamically include different configs for different repos.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = primary-work-email@example.com | |
[includeIf "gitdir:~/git/foo/"] | |
path = foo.gitconfig | |
[includeIf "hasconfig:remote.*.url:https://foo.example.com/**"] | |
path = foo.gitconfig | |
[includeIf "hasconfig:remote.*.url:git@foo.example.com:*/*"] | |
path = foo.gitconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment