title: Git push error: expected committer email 'xxxx' but found 'yyyy'
body: <p>When doing a <code>git push</code> I get the following error:</p>
  
  <pre><code>remote: Push rejected.
  remote:
  remote: refs/heads/features/PLA-1458: 70f23668f033dd59daa116a23c6e63dc0342890f: expected committer email 'j.c@xxxx.com' but found 'j.c@yyyy.com'
  remote:
  remote: refs/heads/features/PLA-1458: 996b28e37a6ae63d79decd8a773a555913d0fa4e: expected committer email 'j.c@xxxx.com' but found 'j.c@yyyy.com'
  remote:
  remote:
  To https://www.company.net/stash/scm/abc/123.git
   ! [remote rejected] features/PLA-1458 -&gt; features/PLA-1458 (pre-receive hook declined)
  error: failed to push some refs to 'https://www.company.net/stash/scm/abc/123.git'
  </code></pre>
  
  <p>my global config has the correct email address:</p>
  
  <pre><code>user.email=j.c@xxxx.com
  </code></pre>
  
  <p>when I do a git log and check the commits that are mentioned in the error:</p>
  
  <pre><code>70f23668f033dd59daa116a23c6e63dc0342890f
  </code></pre>
  
  <p>and</p>
  
  <pre><code>996b28e37a6ae63d79decd8a773a555913d0fa4e
  </code></pre>
  
  <p>I can see the correct email address:</p>
  
  <pre><code>commit 70f23668f033dd59daa116a23c6e63dc0342890f 
  Author: J C &lt;j.c@xxxx.com&gt; 
  Date:   Tue Jun 18 10:08:50 2019 +0200
  
  commit 996b28e37a6ae63d79decd8a773a555913d0fa4e 
  Author: J C &lt;j.c@xxxx.com&gt; 
  Date:   Fri Jun 14 16:18:44 2019 +0200
  </code></pre>
  
  <p>Checking on the server side the email address is</p>
  
  <pre><code>j.c@xxxx.com
  </code></pre>
  
  <p>it looks like at some point a commit was made with the wrong email address <code>j.c@yyyy.com</code> and it needs to be amended now, but I dont know where it is or how to do it. Any ideas? thanks.</p>