In brief
Git settings can come from system, user and repository scopes. A repository-specific value can differ from the user’s general configuration.
Useful to know
Git settings can come from system, user and repository scopes. A repository-specific value can differ from the user’s general configuration. [1]
Inspect where an effective value comes from before changing it. A global author name cannot replace a project policy for personal and work repositories. Configuration controls behaviour; it does not automatically authenticate the person behind every recorded change.
Sources
For further detail and to check the information: