Visual Studio 2013 GitHub avatar not being displayed

烈酒焚心 提交于 2019-12-24 03:06:18

问题


I have set up my VS 2013 with GitHub and my problem is: when I commit to GitHub, I am not seeing my GitHub avatar.


回答1:


As stated in this post, you'll have to tweak the Visual Studio Git settings and tick the "Enable download of author images from 3rd party source" checkbox.

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.

Applying this setting should allow you to see your GitHub avatar when working on your project from within Visual Studio.




回答2:


Where you don't see your avatar, inside Visual Studio interface or on GitHub?

If later, I think you haven't entered correct e-mail in settings of git integration for Visual Studio.

Or you can manually create .gitconfig file in your home folder with following contents:

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

However this will not change information for already created commits. But for all upcoming commits git will use correct e-mail and GitHub will be able match it with your account and use avatar you've uploaded earlier.

Needless to say, that in configuration file you should use only e-mail known by GitHub, otherwise it would not be able to match your commit to your account.

Regarding your avatar inside Visual Studio, I'm not sure is it supported by git integration.



来源:https://stackoverflow.com/questions/29696154/visual-studio-2013-github-avatar-not-being-displayed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!