When 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.
- 在 GitHub 任意页面的右上角,单击你的个人资料照片,然后单击“ Settings”****。
- 在边栏的“Access”部分中,单击 “Emails”****。
- 要在执行基于 Web 的 Git 操作时对电子邮件地址保密,请选择“对我的电子邮件地址保密”****。
- To keep your email address private in commits you push from the command line, select Block command line pushes that expose my email.
Next steps
- For reference information, see 电子邮件地址参考.