Skip to main content

개인 메일 주소를 노출하는 명령줄 푸시 차단

웹 기반 작업을 수행할 때 메일 주소를 비공개로 유지하기로 선택한 경우 개인 메일 주소를 노출할 수도 있는 명령줄 푸시를 차단하도록 선택할 수도 있습니다.

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 Enterprise Cloud, see "Setting your commit email address."

  1. In the upper-right corner of any page, click your profile photo, then click Settings.

    Screenshot of GitHub's account menu showing options for users to view and edit their profile, content, and settings. The menu item "Settings" is outlined in dark orange.

  2. In the "Access" section of the sidebar, click Emails.

  3. To keep your email address private when performing web-based Git operations, select Keep my email addresses private.

  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