xxxxxxxxxx
NAME=userName
EMAIL=email
git config --global user.name $NAME &&\
git config --global user.email $EMAIL &&\
git config credential.username $NAME &&\
git config credential.email $EMAIL
git config --global --list
I recommend you to do this by simply go to your .git folder, then open config file. In the file paste your user info:
xxxxxxxxxx
[user]
name = Your-Name
email = Your-email