setting identity in git 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