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