VSCode 的 Github 提交没有个人资料图标

mes*_*eeb 1 git github avatar visual-studio-code

直接从 VSCode(Visual Studio 代码)提交到 Github 时,
我的 github 配置文件用户图标在 Github 上的提交历史记录中不可见

例如。 在此输入图像描述

我的用户没有显示头像,但我在 Github 网站上有一套。

mes*_*eeb 8

这是因为您的电子邮件地址未在计算机的 git 配置中正确注册。

您可以像这样设置它(全局):

git config --global user.email "email@example.com" 
Run Code Online (Sandbox Code Playgroud)

或者在每个存储库本地,在目录中执行以下命令:

git config user.email "email@example.com"
Run Code Online (Sandbox Code Playgroud)

然后你的图标就会再次出现!