Skip to main content

Blocking command line pushes that expose your personal email address

If you've chosen to keep your email address private when performing web-based operations, you can also choose to block command line pushes that may expose your personal email address.

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.

GitHub の noreply メール アドレスを含む、コミット メール アドレスの詳細については、「Setting your commit email address」を参照してください。

  1. GitHub で、任意のページの右上隅にある自分のプロフィール写真をクリックしてから、 [設定] をクリックします。
  2. サイドバーの [アクセス] セクションで、[ メール] をクリックします。
  3. Web ベースの Git 操作を行うときにメール アドレスを非公開にするには、 [メール アドレスを非公開にする] をクリックします。
  4. To keep your email address private in commits you push from the command line, select Block command line pushes that expose my email.

Further reading