Search code examples
gitgithubvisual-studio-codeavatar

Github commit from VSCode has no profile icon


When committing to Github directly from VSCode (Visual Studio code),
my github profile user icon is not visible in the commit history on Github.

Eg. enter image description here

There is no avatar shown for my user, while I do have one set on the Github website.


Solution

  • This is because your email address is not properly registered inside your computer's git config.

    You can set it like so (globally):

    git config --global user.email "email@example.com" 
    

    Or locally per repository, execute this inside the directory:

    git config user.email "email@example.com"
    

    Then your icon will show up again!