Home  >  Q&A  >  body text

github修改用户名和邮箱后,这个地方头像不显示也没办法点击了,是什么原因?

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

PHP中文网PHP中文网2727 days ago732

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:30:12

    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.

    reply
    0
  • Cancelreply