Launch
git config --global user.email ""
clears the user.email field of your user level configuration file, which will lead to Git to assume that you have not set your email address yet (assuming the email address is not listed at the config file storage level, of course).
As a countermeasure, Git will generate an email address of the form username@pc-name (where pc-name includes the name and fully qualified domain name) and instead prints this email in your commits:
$ git log -1 commit 9cd00b7ed6206086bf332e0481092590d07626d5 Author: jubobs < jubobs@jubobs-MacBook-Pro.local > Date: Thu Dec 18 16:23:19 2014 +0000
However, you can use Git to use an empty email address; you just need to run the following command (tested with Git 2.1.3):
git config --global user.email "\<\>"
Then Git will not use the auto-generated email address mentioned above:
$ git log -1 commit 0d0bb289b293ec020b607021bbd886be5107bc7f Author: Jubobs <> Date: Thu Dec 18 16:25:14 2014 +0000
Related: Git commit without email
source share