Last active
March 17, 2022 22:34
-
-
Save alexengrig/489ffe5d18f3c04e05c495c898c4ee68 to your computer and use it in GitHub Desktop.
Several git configs by git directory
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
# Add to ~/.gitconfig | |
[includeIf "gitdir:~/path/to/directory/first/"] | |
path = .gitconfig-1 | |
[includeIf "gitdir:~/path/to/directory/second/"] | |
path = .gitconfig-2 | |
# Example .gitconfig-1 | |
[user] | |
email = [email protected] | |
name = My Name 1 | |
# Example .gitconfig-2 | |
[user] | |
email = [email protected] | |
name = My Name 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment