TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Avoid committing to GitHub with your company email

9 pointsby kintoandaralmost 9 years ago

5 comments

MaulingMonkeyalmost 9 years ago
If you&#x27;re trying to avoid making your email public via GitHub, you should also ensure:<p>1) &quot;Public email&quot; is set to &quot;Don&#x27;t show my email address&quot; under <a href="https:&#x2F;&#x2F;github.com&#x2F;settings&#x2F;profile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;settings&#x2F;profile</a><p>2) &quot;Keep my email address private&quot; is checked under <a href="https:&#x2F;&#x2F;github.com&#x2F;settings&#x2F;emails" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;settings&#x2F;emails</a><p>It&#x27;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&#x27;t that big a deal... and hey, maybe they added a warning someplace like I suggested?
orionblastaralmost 9 years ago
It depends on the company. For example Google supports free and open source projects and might like that you contribute to some of them and see if any of them fit their business plan.<p>But yeah you don&#x27;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&#x27;t get spammed.
milasalmost 9 years ago
You can already configure the author name&#x2F;email per repo with `git config`[0]. It seems that the intent of this script is to simply to remind you if you forget to do that.<p>(Perhaps that&#x27;s obvious -- I actually assumed initially that it was going to rewrite the index before pushing which would be terrifying.)<p>[0] <a href="https:&#x2F;&#x2F;help.github.com&#x2F;articles&#x2F;setting-your-email-in-git&#x2F;#setting-your-email-address-for-a-single-repository" rel="nofollow">https:&#x2F;&#x2F;help.github.com&#x2F;articles&#x2F;setting-your-email-in-git&#x2F;#...</a>
kintoandaralmost 9 years ago
Yeah, you guys are right, the `README` file is not clear enough regarding the objective of the hook. Will fix that ASAP.<p>Bottom line, this is a &quot;save your bacon&quot; 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.<p>We&#x27;ve created this hook after we had to, yet again, rewrite history to remove the company email from public commits.
0x54MUR41almost 9 years ago
What use case that we should avoid committing to GitHub with our company email?
评论 #11833757 未加载