User.name problem

Hello everyone, 

I have issue when I’m trying commit to gitbut repository, they sane my user name and profisional mail in the commit, 

I change with command but the same thing, the commit save my machine name 

git config --global user.name and user.email

how can I related my vscode to any github repository 

thank you  

You need to run them as two seperate commands:

git config --global user.name [YOUR FULL NAME]

git config --global user.email [YOUR MAIL ADDRESS, THAT IS ALSO LINKED TO YOUR GH ACCOUNT]
1 Like

that’s what I did before posting this, the same result 

OK, and what exactly is the problem then? Is Git comitting with a different e-mailadress then you would like Git to commit with?

I see you mentioning VSCode in you post. Is the behaviour (the mail address in this case I believe) different based on if you use VSC or Git Bash?

Hello, 

Do you know how to relate github to vscode ? 

I tried to change my email and name, but when I commit they save my alias and mail not my username Github

thank you 

solution is here 

GitHub Pull Requests

good luck