git config user.name
From the documentation: "Options --system, --global, --local, --worktree and --file <filename> can be used to tell the command to read from only that location".
Search Git Commands | More How Tos