Skip to content

Instantly share code, notes, and snippets.

@juanmsl
Created February 12, 2021 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanmsl/07d9cbe848e1ec6da39c4cb8bfc8dd81 to your computer and use it in GitHub Desktop.
Save juanmsl/07d9cbe848e1ec6da39c4cb8bfc8dd81 to your computer and use it in GitHub Desktop.
Use different git global configurations depends on an specific folder
# This is gitconfig into ~/.gitconfig
[user]
name = Your global name
email = your_global@email.com
[includeIf "gitdir:~/code/personal/**/"]
path = ~/code/personal/.gitconfig
# 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