git check email and username code example Example: get git username and email git config user.name git config user.email