Created
February 12, 2021 00:21
-
-
Save juanmsl/07d9cbe848e1ec6da39c4cb8bfc8dd81 to your computer and use it in GitHub Desktop.
Use different git global configurations depends on an specific folder
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
# This is gitconfig into ~/.gitconfig | |
[user] | |
name = Your global name | |
email = your_global@email.com | |
[includeIf "gitdir:~/code/personal/**/"] | |
path = ~/code/personal/.gitconfig |
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
# This is gitconfig into ~/code/personal/.gitconfig | |
[user] | |
name = Your personal name | |
email = your_personal@email.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment