How to check git config username?

Shell
3) Look in your Git configuration file
Finally, you can also see your Git username in the Git configuration file in your HOME directory on Unix systems, i.e., this file:

~/.gitconfiggit config --list
git config user.name

Source

Also in Shell: