how to know the current git config user 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