check logged in user git shell
git config -l git config user.name git config user.email
Here is what the above code is Doing:
1. git config -l lists all the configuration settings for the current user.
2. git config user.name and git config user.email show the current settings for the user’s name and email address.