I Just use the following command and I found this useful for me. You can try it.
git config --global user.email "[email protected]" git config --global user.name "Your Name"