title: Git - fatal: Unable to create '/path/my_project/.git/index.lock': File exists
body: <p>I am still getting this error message, when I try to move my project tree on to git repo.</p>
  <p>I checked the permissions of my directory with this project and these are set on 777. In terminal in the directory with <code>my_project</code> I set:</p>
  <p><code>git init</code></p>
  <p>and then if I try</p>
  <p><code>git add .</code></p>
  <p>or</p>
  <p><code>git commit -m &quot;first upload&quot;</code></p>
  <p>so I'll get the error</p>
  <pre><code>fatal: Unable to create '/path/my_proj/.git/index.lock': File exists.
  
  If no other git process is currently running, this probably means a git process crashed in this repository earlier. 
  Make sure no other git process is running and remove the file manually to continue.
  </code></pre>
  <p>I tried also create a new repo and there to commit it, but unfortunately still the same error message.</p>
  <p>What is the cause of problem?</p>