title: Local git config not overriding global user for project
body: <p>I have a global git user configured, but want to use a different user for a single git project.</p>
  
  <p>Within that project, I've used <code>git config --local user.name "localuser"</code> and <code>git config --local user.email "localuser@example.com"</code> to set the local project's user and email.</p>
  
  <p>However, when I try to push to my remote on github, I get this error:</p>
  
  <pre><code>remote: Permission to localuser/repo.git denied to globaluser.
  fatal: unable to access 'https://github.com/localuser/repo.git/': The requested URL returned error: 403
  </code></pre>
  
  <p>Here's some output that might help with diagnosis:</p>
  
  <p><code>git remote -v</code>:</p>
  
  <pre><code>github  https://github.com/localuser/repo.git (fetch)
  github  https://github.com/localuser/repo.git (push)
  </code></pre>
  
  <p><code>git config --list</code>:</p>
  
  <pre><code>user.name=globaluser
  user.email=globaluser@example.com
  ...
  </code></pre>
  
  <p><code>git config --local --list</code>:</p>
  
  <pre><code>user.name=localuser
  user.email=localuser@example.com
  ...
  </code></pre>
  
  <p><code>git config user.name</code>:</p>
  
  <pre><code>localuser
  </code></pre>