3 ms·
My solution to the author's problem is to use `direnv` with `.envrc` files. From those I set several ENV variables based on where in my file structure I'm curre
by lsaferite 5y ago
My solution to the author's problem is to use `direnv` with `.envrc` files. From those I set several ENV variables based on where in my file structure I'm currently located. Two of those top level variables are `GIT_AUTHOR_EMAIL` and `GIT_COMMITTER_EMAIL` which take priority over the global .gitconfig file values. That allows me to easily use a different identity based on what workspace I'm using.