by rkangel · 3y ago · 0 comments
[user]
name = "My Name"
useConfigOnly = true
Then, the first time you commit in each repo, you'll get an "Author Identity Unknown" message. Then just run `git config --local user.email hello@example.com` to set the config for that repo. [alias]
whoami = "!f() { echo $(git config --get user.name)' <'$(git config --get user.email)'>'; }; f"
but I might switch to your less error-prone approach.