我在尝试提交时不断收到此错误消息:
fatal: Unable to create '/[path_to_project]/.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.
husky > pre-commit hook failed (add --no-verify to bypass)
/Users/marina.popa/.nvm/versions/node/v4.0.0/lib/node_modules/commitizen/dist/cli/strategies/git-cz.js:102
throw error;
^
Error: git exited with error code 1
at ChildProcess.<anonymous> (/Users/marina.popa/.nvm/versions/node/v4.0.0/lib/node_modules/commitizen/dist/git/commit.js:50:26)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
我已经找了 index.lock 文件来删除它,但它并不存在。