On Git version 2.8.0 and above, you can type
git config --list --show-origin
to show the origin of the individual configuration entry.
Order of preference is local > global > system. So local configuration will be preferred over global if present.