git global config get username code example
Example 1: get git username and email
git config user.name
git config user.email
Example 2: set username git
git config --global user.name "My Name"
git config user.name
git config user.email
git config --global user.name "My Name"