Git bash for windows seems to use wrong user name for Github SSH connection

I have created a ssh key using my github email address and have added it to github:


I have also changed my git global email address to use my github email address:


but when I try to login it says that permission has been denied:


Hi @ftaran ,

Just to make sure: have you added the  SSH key to GitHub or the mail address?