Github修改的用户名和邮箱

mac2024-04-07  36

原因

上传时发现自己的 github 用户名不对,为‘xxxxxx’,不能很好的标识。

查看

果然,查看自己的本地的 git 用户名和邮箱都没设置好,这个也是对 github 不熟留下的坑。

git config user.name # 查看用户名 xxxxxx git config user.email # 查看邮箱 xxxx@.com

修改

修改本地的用户名和邮箱,然后验证是否修改成功

git config --global user.name 'xxxx' git config --global user.email 'xxxx'

done!

最新回复(0)