Most of the time you wanted to change the username and email that has been configured locally in your machine.
In order to know first the locally configured username type the following in command prompt.
$ git config --global user.name
Do the same with the email.
$ git config --global user.email
Finally, change it by adding username and email
$ git config --global user.name "John Doe" $ git config --global user.email [email protected]