Vyvianite
Vyvianite

Reputation: 163

How to set a hidden back-up email on Github?

I have a public email I use for git commits and I am trying to figure out if it's possible to add a hidden backup email to my account without having it be exposed.

Upvotes: 2

Views: 383

Answers (2)

devklepacki
devklepacki

Reputation: 74

The not perfect soultion to that seems to be keeping Keep my email addresses private checked, and disabling Block command line pushes that expose my email. In that way all email addresses (main and backup ones) will be hidden directly on your profile, but it will still be possible to create commits using them. Just keep in mind that you will also be able to expose your backup email if you happened to create a commit using it.

Upvotes: 0

Gino Mempin
Gino Mempin

Reputation: 29600

See the Setting a backup email address section of the Github docs.

Use a backup email address as an additional destination for security-relevant account notifications and to securely reset your password if you can no longer access your primary email address.

This should, of course, be different from the emails you use for commits. From your profile, go to the Emails section, add a new email address and select it from the dropdown of the Backup email address section.

Github Email Settings

In addition, you may want to also check the Keep my email addresses private option to hide your email "when performing web-based Git operations (e.g. edits and merges) and sending email on your behalf."

Upvotes: 1

Related Questions