I have changed my user and email for git with those commands
git config --global user.name \"maa\" git config user.email \"maa@gmail.com\"
Locally:
git config credential.username "new_username"
Globally:
git config --global credential.username "new_username"