我们在git提交时若出现
Another git process semms 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 remove the file manually to continue…
这种问题是由于Git在使用过程中遭遇了闪退或者强制取消但是取消失败的问题,部分被上锁资源没有被释放导致的,解决办法也很简单:
删除.git目录下的index.lock文件