get git user.name in any situation

If you are not in a project, but editing versioned file, the user.name is displayed correctly