Hacker Read
top
|
best
|
new
|
newcomments
|
leaders
|
about
|
bookmarklet
login
simias | karma 28508 | avg karma 6.15
2017-05-10 14:56:34+00:00
|
next
[–]
update item
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`.
reply
view as:
tree
latest_first
dmit | karma 6197 | avg karma 13.86
2017-05-10 10:30:06
|
next
[–]
similar comments
I think this only works if you set `git config --global user.useconfigonly true`, otherwise git will try to guess your name/email.
reply
simias | karma 28508 | avg karma 6.15
2017-05-10 15:41:37+00:00
|
next
[–]
similar comments
It does, thank you for that tip! So far I'd just `git commit --amend --reset-author` after setting the email the first time.
reply
Legal
|
privacy
reply