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.
Pour plus d'informations sur les adresses email de commit, y compris votre noreply
adresse email pour GitHub, consultez Setting your commit email address.
- Dans le coin supérieur droit de n’importe quelle page sur GitHub, cliquez sur votre photo de profil, puis sur Paramètres .
- Dans la section « Accès » de la barre latérale, cliquez sur E-mails.
- Pour que votre adresse e-mail reste privée pendant l’exécution des opérations Git basées sur le web, sélectionnez Garder mes adresses e-mail privées.
- To keep your email address private in commits you push from the command line, select Block command line pushes that expose my email.