感谢 Ped7g,我想通了:在你的 git config (.git/Config) 中,你需要添加
[user]
name = github_username
email = [email protected]
您也可以通过这样做来实现(使用 --local 表示当前或 --global 表示所有存储库)
git config --local user.name github_username
git config --local user.email [email protected]
用户名必须与 Github 上的用户名一致。如果您另外提供相同的电子邮件,则可以单击您的用户名并访问您的帐户。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句