Visual Studio 2013 GitHub 头像未显示

Visual Studio 2013 GitHub avatar not being displayed

我已经使用 GitHub 设置了我的 VS 2013,我的问题是:当我提交 GitHub 时,我没有看到我的 GitHub 头像。

在 Visual Studio 界面内或 GitHub 上看不到头像的地方?

如果稍后,我认为您没有在 Visual Studio 的 git 集成设置中输入正确的电子邮件地址。

或者您可以在主文件夹中手动创建 .gitconfig 文件,内容如下:

[user]
    name = Your Name
    email = your.name@email.com

但是,这不会更改已创建提交的信息。但是对于所有即将到来的提交,git 将使用正确的电子邮件,并且 GitHub 将能够将其与您的帐户匹配并使用您之前上传的头像。

不用说,在配置文件中你应该只使用 GitHub 已知的电子邮件,否则它无法将你的提交与你的帐户相匹配。

关于您在 Visual Studio 中的头像,我不确定 git 集成是否支持它。

如本 post 所述,您必须调整 Visual Studio Git 设置 并勾选 "Enable download of author images from 3rd party source" 复选框。

If your Git repo remote origin is in a third-party Git service (such GitHub, Bitbucket, or CodePlex), select Enable download of author images from 3rd party source, and then ask team members to set up Gravatar accounts for their email addresses.

应用此设置应该可以让您在 Visual Studio.

中处理您的项目时看到您的 GitHub 头像