title: Git / gerrit, push remote rejected no changes made
body: <p>Made changes to a commit, performed commit amend. Do a push and I get the error:</p>
  
  <pre><code>! [remote rejected] master -&gt; refs/for/master (no changes made)
  </code></pre>
  
  <p>Checked the change ID in the commit message and its still a valid commit.</p>
  
  <p>I've tried changing a file, checking it shows up as an alteration and then added to staging area and done another commit amend. Try the push again and getting the same issue. No idea on this one.</p>
  
  <p>Edit: This is pushing to gerrit, not git directly.</p>
  
  <p>I'm running:</p>
  
  <pre><code>git push origin master:refs/for/master
  </code></pre>
  
  <p>And the result of getting the details of origin are (with company details edited out):</p>
  
  <pre><code>$ git remote show origin
  * remote origin
    Fetch URL: ssh://lytee@gerrit.mycompany.net:29418/myrepo
    Push  URL: ssh://lytee@gerrit.mycompany.net:29418/myrepo
    HEAD branch: master
    Remote branch:
      master tracked
    Local branch configured for 'git pull':
      master rebases onto remote master
    Local ref configured for 'git push':
      master pushes to master (up to date)
  </code></pre>