Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to create .git/index.lock #64
Since a while now, every time I commit (I have the pre-commit hook installed), after it, I get this message:
I've tried removing and installing the pre-commit hook, removed gitmoji-cli completely and updated to the most recent version - nothing helps. I encounter the same problem without pre-commit hook and just using the gitmojicommand. When I just commit normally (without gimoji) everything works fine
As the error messages says, this problem comes from:
And basically this happens when a git process is killed therefore the lock file is left over.
I've been investigating and I haven't found a solution yet. It's really weird because it's hard to reproduce the error. IMHO I think the issue is related with use of the
It really never happened to me, at least with
rm -rf .git/index.lock
Any help is appreciated!
Read the release changelog at https://github.com/carloscuesta/gitmoji-cli/releases/tag/v1.7.0
referenced this issue
Jul 9, 2018
It resolved for me.
how to show hidden files
I think that's because it should be