Get a user's data from git config at the project or global scope, depending on what git uses in the current context.