title: Notorious Git Error: remote rejected (failed to lock)
body: <p>I am trying to push to a branch from my local to the origin. The branch name and the path is same. I have been pushing and pulling from this branch for a while and never had a problem. But suddenly, it started behaving badly. Last time when I tried to push to origin with following command:</p>
  
  <pre><code>git push origin feature/Prizefulfilment
  </code></pre>
  
  <p>It gives me following errror:</p>
  
  <pre><code>72c6c1da98e5cff4484e254a538d9e3b472156ff but expected 0000000000000000000000000000000000000000
  </code></pre>
  
  <p>I have Googled around but did not find a quite satisfying solution to it yet. </p>
  
  <p>My exact error looks like following:</p>
  
  <pre><code>$ git push origin feature/Prizefulfilment
  Counting objects: 126, done.
  Delta compression using up to 4 threads.
  Compressing objects: 100% (75/75), done.
  Writing objects: 100% (78/78), 8.83 KiB, done.
  Total 78 (delta 61), reused 0 (delta 0)
  error: Ref refs/heads/feature/Prizefulfilment is at 72c6c1da98e5cff4484e254a538d9e3b472156ff but expected 0000000000000000000000000000000000000000
  remote: error: failed to lock refs/heads/feature/Prizefulfilment
  To git@devtools.contestfactory.com:OpusOneSCRUM
   ! [remote rejected] feature/Prizefulfilment -&gt; feature/Prizefulfilment (failed to lock)
  error: failed to push some refs to 'git@devtools.contestfactory.com:OpusOneSCRUM'`
  </code></pre>
  
  <p>Any ideas?</p>