view git credentials code example
Example 1: git list user and email
git config --global --get user.name
git config --global --get user.email
Example 2: git credentials
# this will store your credentials "forever"
git config --global credential.helper store