git 更改 GitHub 用户名旁边的头像(用于提交)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10221280/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 06:47:40  来源:igfitidea点击:

Change Avatar Next to GitHub Username (For Commits)

gitgithubprofilegithub-services

提问by Gabriel Ryan Nahmias

I have a username on GitHub and have an avatar for that -- easy enough.
The Get a single user V3 APIdoes include my gravatar when I call it with my GitHub id.

我在 GitHub 上有一个用户名并有一个头像 - 很容易。当我用我的 GitHub id 调用它时
Get a single user V3 API确实包含了我的 Gravatar。

However, when I push my commits, I have my name show as the committer but next to it is that goofball octocat silhouette. How can I change this?

然而,当我推送我的提交时,我的名字显示为提交者,但旁边是那个傻瓜八爪猫剪影。我怎样才能改变这个?

回答by VonC

Check your author and email information associated with your commits as published inn your GitHub repo.
If they aren't exactlyidentical to those of your GitHub profile, then your gravatar won't be displayed for those commits.

检查与您在 GitHub 存储库中发布的提交相关的作者和电子邮件信息。
如果它们与您的 GitHub 个人资料中的不完全相同,则不会为这些提交显示您的头像。

回答by swooby

FYI: GitHub uses your G rated gravatar, so be sure to set that (and not your PG and above).

仅供参考:GitHub 使用您的 G 级头像,所以一定要设置它(而不是您的 PG 及以上)。