Solve - fatal: Unable to create '/myproject/.git/index.lock': File exi

By Hardik Savani | June 29, 2016 | Category : Git

When i was working on my laravel 5 application, i did all the changes i did but when i had gone for push then i found this fatal error. It's not able to create index.lock file in .git folder. I also give full permission to .git folder and also try to remove direct index.lock file from .git directory but same error like as bellow.


fatal: Unable to create '/var/www/me/theme_backend/.git/index.lock': File exists.

But at last i found how can i resolve this problem, just run bellow command and it will work.

rm -f ./.git/index.lock

Tags : Example Git Solve

Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.