check username on commit code example
Example 1: get git username and email
git config user.name
git config user.email
Example 2: git show username
git config --list
git config user.name
git config user.email
git config --list