how to check github username mac code example
Example 1: how to get git username and password
$ git config --global user.name "Mona Lisa"
$ git config --global user.name
$ mona
Example 2: git change user for single repo
$ git config user.name "John Doe"