github修改用户名和邮箱后,这个地方头像不显示也没办法点击了,是什么原因?
PHP中文网
PHP中文网 2017-05-02 09:28:12
0
1
726

这里的用户名还是以前的,头像也不显示了,也点击不了了,是怎么回事儿?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
我想大声告诉你

This is because the avatar and username displayed in the commit are determined based on your local Git configuration, not your Github account. When the email in your Github account is exactly the same as your local Git configuration, Github will replace the email in the commit with your username and avatar.

And since Git repo is a historical tracking, the author displayed here (actually just an email string) cannot be updated. Unless you use reflog to modify the history, or delete all the history and start over.

If you want to add an avatar on Github for a previous Git commit, you can go to Gravatar to set an avatar corresponding to the email address.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!