Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are git emails of authors in commits publicly readable? [duplicate]

Tags:

I noticed that in my commits to github there is my email address.

I couldn't find this email address appear anywhere on github, but I was wondering if it could appear anywhere and be crawled by bots for spam?

If so, is that possible to remove the email address and not have it in the commits anymore?

Note: the project is open and public on github (not private repository)

like image 805
Matthieu Napoli Avatar asked Sep 04 '12 14:09

Matthieu Napoli


People also ask

Are GitHub emails public?

Yes, your email address (as specified in git config user. email ) will be visible in web interfaces like GitWeb.

How do I hide my email in GitHub?

Github Settings:Go to Your Profile -> Emails and enable these options: Keep my email addresses private. Block command line pushes that expose my email.

How do I change the author and committer name and email of multiple commits in Git?

The git commit --amend --reset-author --no-edit command is especially useful if you created commits with the wrong author information, then set the correct author after-the-fact via git config .


1 Answers

Anyone who clones the git repository will be able to see the email address you made the commit with.

If you add .patch to any commit URL you will see the raw commit data (including the commiter's email). For example: https://github.com/kennethreitz/requests/commit/c8f166f696327d.patch

like image 93
yprez Avatar answered Nov 10 '22 01:11

yprez