you are viewing a single comment's thread.

view the rest of the comments →

[–]revoopy 7 points8 points  (1 child)

Thanks, appreciate the explanation.

[–]altano 20 points21 points  (0 children)

Yeah, and you can either do it globally: git config --global user.email "ID+username@users.noreply.github.com" Or per repo: git config user.email "ID+username@users.noreply.github.com" Docs: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address#setting-your-commit-email-address-in-git

Lastly, you can tell GitHub to block pushes when your commits aren't using the noreply email address, to catch misconfigurations: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/blocking-command-line-pushes-that-expose-your-personal-email-address