check logged in user in git bash code example Example: git list user and email git config --global --get user.name git config --global --get user.email