When you push commits from the command line, the email address that you've set in Git is associated with your commits. If you enable this setting, each time you push to GitHub, we’ll check the most recent commit. If the author email on that commit is a private email on your GitHub account, we will block the push and warn you about exposing your private email.
For more information on commit email addresses, including your noreply
email address for GitHub, see "Setting your commit email address."
-
在任何页面的右上角,单击您的个人资料照片,然后单击 Settings(设置)。
-
In the "Access" section of the sidebar, click Emails.
-
要在执行基于 web 的 Git 操作时对您的电子邮件地址保密,请单击 Keep my email addresses private(对我的电子邮件地址保密)。
-
To keep your email address private in commits you push from the command line, select Block command line pushes that expose my email.