Unable to create `index.lock`: File exists.
See original GitHub issueHi Carlos,
First of all thanks for such an amazing piece of cake. I’d be great if I could get this to work but unfortunately I am always getting this error:
I’ve tried also with sudo gitmoji -c
but doesn’t work either. Any clue of what could be going on here? I’ve made sure there is no index.lock
file in my .git/
folder.
Thank you very much!
Ramón
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
991 - Stack Overflow
fatal : Unable to create '/path/my_proj/.git/index.lock': File exists. If no other git process is currently running, this probably means a ...
Read more >Understanding and Using Git's index.lock File | Pluralsight
1fatal : Unable to create '.git/index.lock': File exists. This error alludes to the creation of an index.lock file within your hidden .git ...
Read more >Git - How to Solve `'git/index.lock': File exists` Error in ...
Suddenly, when you try to add changes to the staging area, it fails. Then, you figure out that you cannot perform the common...
Read more >Git Error: Unable to create index.lock | The First Byte
Here's an error I recently came accross in Git when trying to push a commit. If Git is giving you something about being...
Read more >fatal: Unable to create, git/index.lock': File exists - FindNerd
Open terminal & go to the path where your project is. · Type ls command and check if there is a .git folder....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i solved the problem by create and remove the file
touch .git/index.lock && rm .git/index.lock
but it is frustrating because the error triggered quite frequently.
Its funny indeed. It works only in new repos but not on the existing ones I have already.