git show username config code example Example 1: How to check git config username? git config user.name Example 2: How to check git config username? git config --list