Blocking command line pushes that expose your personal email address

in #utopian-io7 years ago (edited)

Screenshot_56.png!

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. This setting blocks you from pushing commits on the command line that use your personal email address.

For more information on commit email addresses, including your GitHub-provided noreply email address, see "About commit email addresses."

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

Screenshot_158.png

In the left sidebar, click Emails.

Screenshot_154.png

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

Screenshot_155.png

To keep your email address private in commits you push from the command line, select Block command line pushes that expose my email.

Screenshot_156.png

About commit email addresses

GitHub uses your commit email address to associate commits with your GitHub account. You can choose the email address that will be associated with the commits you push from the command line as well as web-based Git operations you make.

For web-based Git operations, you can set your commit email address on GitHub. For commits you push from the command line, you can set your commit email address in Git.

If you'd like to keep your personal email address private, you can use a GitHub-provided no-reply email address as your commit email address. To use your noreply email address for commits you push from the command line, use that email address when you set your commit email address in Git. To use your noreply address for web-based Git operations, set your commit email address on GitHub and choose to Keep my email address private.

You can also choose to block commits you push from the command line that expose your personal email address.

To ensure that commits are attributed to you and appear in your contributions graph, use an email address that you've added to your GitHub account, or the GitHub-provided noreply email address provided to you in your email settings.

THANK FOR

https://help.github.com/articles/blocking-command-line-pushes-that-expose-your-personal-email-address/

https://help.github.com/articles/about-commit-email-addresses/



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://help.github.com/articles/about-commit-email-addresses/

i am sorry for my mistake

@muluha, Upvote for supporting you.

Your contribution cannot be approved because it does not follow the Utopian Rules.

  • The content of the post is not related to the selected repository.
  • You took the content from the help page.

You can contact us on Discord.
[utopian-moderator]