最近用小乌龟提交代码的时候,没注意有一个弹窗,点了提交后,不能继续提交了,提示报错信息
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.
这个时候代码已经被暂存了,用vscode上的git工具撤销也是报错,
翻译之后的意思当前已经有了一个编辑器打开了“git commit”指令,请关闭所有git相关的进程重试,否则,请手动删除那个文件。
应该是这个提交的进程是给上锁了,处理方式是进入工作区目录下的隐藏文件.git,显示隐藏文件,将其中的index.lock文件删除掉,就好了