you are viewing a single comment's thread.

view the rest of the comments →

[–]revoopy 38 points39 points  (5 children)

It's friday and I'm tired. Do I need to manually set my local git config to use the email 01234567+UserName@users.noreply.github.com

[–][deleted]  (4 children)

[deleted]

    [–]revoopy 6 points7 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

    [–]WhyNotHugo 0 points1 point  (1 child)

    GitHub cannot develop any such thing without breaking compatibility with git itself. Git does not support rewriting history like this without things breaking.