check login of git in local cmd code example Example: get git username and email git config user.name git config user.email