Post

Configuring Git user email, username

Use:

1
2
git config --global user.name "Philip Nye"
git config --global user.email "philipnye@users.noreply.github.com"

Note that the email address should be the privacy-defending email address associated with a GitHub account where this is in use (e.g. @users.noreply.github.com), rather than the primary email address associated with that account.

Ref

This post is licensed under CC BY 4.0 by the author.