Try this
git config user.name
git config command stores and gives all the information.
git config -l
This commands gives you all the required info that you want.
You can change the information using
git config --global user.name ""
Similarly you can change many info shown to you using -l option.