若在使用版本控制工具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在使用过程中遭遇了奔溃),部分被上锁的资源就没有被释放出来所导致的。
解决方案:
进入项目文件夹下的 .git文件中(显示隐藏文件夹或rm .git/index.lock)删除index.lock文件即可。