What are you trying to achieve? If you want to get your user name you need to add --get there are some example here
How do I show my global Git configuration?
also check the docs here
https://git-scm.com/book/be/v2/Customizing-Git-Git-Configuration
The syntax without the comma is the correct one