**
git操作失败并提示:
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.
这是百度翻译的
原因在于Git在使用过程中遭遇了奔溃,部分被上锁资源没有被释放导致的。需要手动删除项目目录下的.git中的index.lock文件
解决方案:进入项目文件夹(如果找不到.git文件的话就点查看选中隐藏的项目)下的 .git文件中(显示隐藏文件夹或rm .git/index.lock)删除index.lock文件即可。