title: git --amend --no-edit rejected push
body: <p>Today I discovered the <code>--no-edit</code> for the <code>--amend</code>. However, it leads me to the following problem. Here the steps:</p>
  
  <ul>
  <li>git clone </li>
  <li>did some changes to the code</li>
  <li>git add .</li>
  <li>git commit --amend --no-edit</li>
  <li><p>git push origin master</p>
  
  <pre><code>! [rejected]        master -&gt; master (non-fast-forward)
  error: failed to push some refs to 'https://me@bitbucket.org/myRepo.git'
  hint: Updates were rejected because the tip of your current branch is behind
  hint: its remote counterpart. Integrate the remote changes (e.g.
  hint: 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  </code></pre></li>
  </ul>
  
  <p>Why?</p>
  
  <p>Note: I'm the only one which works on that repo.</p>