Avoid committing to GitHub with your company email
github.com
github.com
1) "Public email" is set to "Don't show my email address" under https://github.com/settings/profile
2) "Keep my email address private" is checked under https://github.com/settings/emails
It's frustrating that these are still two separate options - worse still that I believe I had the first option set when the second was added, unchecked by default, resulting in me leaking my email about a year ago. The spambots had it anyways, so I guess it wasn't that big a deal... and hey, maybe they added a warning someplace like I suggested?
But yeah you don't want to use company email. When I worked I used my Hotmail account for Microsoft and other tech support and programming websites, so my company email wouldn't get spammed.
(Perhaps that's obvious -- I actually assumed initially that it was going to rewrite the index before pushing which would be terrifying.)
[0] https://help.github.com/articles/setting-your-email-in-git/#...
Bottom line, this is a "save your bacon" approach if you forget to change your email locally on a github repo, but still want to use your professional email globally on your system.
We've created this hook after we had to, yet again, rewrite history to remove the company email from public commits.
Have fun ;)