1

PS D:\Bootstrap4\conFusion> git add fatal: Unable to create 'D:/Bootstrap4/conFusion/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.

a student
  • 11
  • 1
  • Make sure there are no git processes in memory then try again. If the error persists, then do as the error says and delete index.lock. – tutiplain Nov 21 '20 at 21:48
  • how we can know if there is git processes in memory – a student Nov 21 '20 at 21:52
  • 1
    Does this answer your question? [Git - fatal: Unable to create '/path/my\_project/.git/index.lock': File exists](https://stackoverflow.com/questions/7860751/git-fatal-unable-to-create-path-my-project-git-index-lock-file-exists) – pr1nc3 Nov 21 '20 at 21:53
  • not really it doen't help me to fix my problem and when I tried to search for this one D:/Bootstrap4/conFusion/.git/index.lock to delete it manually i didn't find it – a student Nov 21 '20 at 22:17
  • can anyone help me – a student Nov 21 '20 at 22:28

1 Answers1

0
  1. Go to your folder of the current repository
  2. Then check .git folder which is hidden folder
  3. Delete index.lock file
Sumeet.js
  • 13
  • 6