NO,
您可以在本地设置任何用户名和电子邮件
您甚至可以使用每次提交的-c
标记设置所需的任何电子邮件(覆盖默认配置值)。
# set any desired commit user name email
git commit -c user.email "a@aa.net" -c user.name "aaaa"
您在本地设置的用户名/电子邮件仅用于您的提交元数据,与您的github帐户无关。
git -c user.name="Darth Vader" -c user.email="star@wars.com" commit -m "Message"
现在提交中的数据如下: