title: fatal: unable to create 'refs/heads/master.lock': File exists fatal: - Getting this error while pushing the commits
body: <p>I am getting the following error while pushing the commit</p>
  
  <pre><code>$ git push origin master
  fatal: unable to create 'refs/heads/master.lock': File exists fatal:
  The remote end hung up unexpectedly
  </code></pre>
  
  <p>I thought of removing the lock file (<code>refs/heads/master.lock</code>) from my local machine. But this file is not available. I think this file is in git server.</p>
  
  <p>What is the origin of this issue? If I remove this file from the server, will it solve the issue if the file exists?</p>