Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Indeed. My current workaround was simply not to put any email in ~/.gitconfig. Upon commiting for the first time in a new repo git would complain, then I could set the correct email for this particular repo using `git config user.email $email`.


view as:

I think this only works if you set `git config --global user.useconfigonly true`, otherwise git will try to guess your name/email.

It does, thank you for that tip! So far I'd just `git commit --amend --reset-author` after setting the email the first time.

Legal | privacy