"git config --list" shows duplicate names
<p><code>git config --list</code> shows two values for <code>user.name</code>, one global, one local:</p>

<pre><code>user.name=My Name
...
user.name=My Other Name
...
</code></pre>

<p>My understanding is that local values override global ones.  How can I get <code>git config</code> to only show the values that are actually in effect?  I only want to see one value of user.name -- the one that will be used if I commit in the current context.</p>

<p>If my question is based on a misunderstanding, or if this is caused by something wrong with my git install, that would also be very helpful.</p>