title: Git: how to commit as someone else?
body: <p>I'm working on a freelance project. The client (let's call him <strong>foobar</strong>) asked me to upload the code using his github account (my work PC runs 64-bit Windows 10, I have git 2.15.0) installed.</p>
  
  <p>So I did these steps.</p>
  
  <ol>
  <li><p>Go to Credential Manager -> Windows Credential -> Generic Credentials. Removed my Github account</p></li>
  <li><p>On the source code directory, performed the standard procedure:</p>
  
  <pre><code>git init
  git add *
  git commit -m "first message"
  git remote add origin https://github.com/foobar/supersecretproject.git
  git push -u origin master
  </code></pre></li>
  </ol>
  
  <p>A Github credential dialog appeared. Entered his credential.</p>
  
  <p>Wait for a while, and yes the code was commited to Github. Opended the Github page, and strangely the commiter shown was me, not <strong>foobar</strong>. Strange. How to fix this? I want to commit as <strong>foobar</strong>.</p>