After modifying the username and email address on GitHub, the avatar is not displayed and cannot be clicked. What is the reason?
PHP中文网
PHP中文网 2017-05-02 09:28:12
0
1
785

The username here is still the same as before, the avatar is no longer displayed, and you can’t click on it. What’s going on?

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