title: Git history rewrite on Bitbucket [remote rejected] HEAD -> branch (pre-receive hook declined)
body: <p>On Bitbucket, using the Bitbucket web interface, I sync'd a blessed repo with my own private fork in error. I wanted to rewrite history on the blessed repo to bring it back to the correct commit.</p>
  
  <p>I cloned the blessed repo that contained my incorrect commits and locally ran </p>
  
  <pre><code>git reset --hard HEAD~1
  </code></pre>
  
  <p>on the branch whose history was screwed up.</p>
  
  <p>This brought the cloned repo back to the commit it was at before I screwed it up. </p>
  
  <p>I then went to push my repo back up to Bitbucket using </p>
  
  <pre><code>git push -f origin development
  </code></pre>
  
  <p>but got the following error </p>
  
  <pre><code>remote: permission denied to force push branch development
  To git@bitbucket.org:blessed-repo/blessed-repo.git
   ! [remote rejected] HEAD -&gt; development (pre-receive hook declined)
  error: failed to push some refs to 'git@bitbucket.org:blessed-repo/blessed-repo.git'
  </code></pre>
  
  <p>Why did I get this error and how can I make the <code>git push</code> work?</p>