How to setup different git email per directory basis
Sometimes it is necessary to have different git email per directory basis.
This is configuration example how to do it:
In~/.gitconfig
:
[user]
name = Bruce Wayne
email = [email protected]
[includeIf "gitdir:~/projects/gotham/"]
path = ~/Projects/gotham/.gitconfig
[core]
editor = vim
In ~/projects/gotham/.gitconfig
:
[user]
name = Batman
email = [email protected]
That's it for this post, thanks for reading!