Git 使用中显示“Another git process seems to be running in this repository...”问题解决
2018-08-13 23:51
676 查看
一、引言:问题回忆
这几天,我同时在使用vs2017自带的git管理工具和git bash命令行工具对于同一个工作区进行了git操作管理。
其中,当我在vs2017中对文件进行了更改,突然脑洞大开,想要使用git bash使用命令行进入到工作区使用命令行
git commit提交修改,此时我输入了git commit结果一不小心点击了右上角的结束按钮,导致此git进程崩溃。
然后进入了vs2017的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 commit”指令,请关闭所有git相关的进程重试,否则,请手动删除那个文件。
二、问题解决
根据我们所了解到的,windows对于进程的同步互斥管理,是有资源上锁机制的。猜测这里肯定是有进程对某资源进行了加锁,但是由于进程突然崩溃,未来得及解锁,导致其他进程访问不了。
这里根据vs2017的git管理工具的提示信息,打开文件夹选项,打开显示隐藏文件,进入工作区目录下的隐藏文件.git,其中的index.lock文件删除掉,然后重新打开git bash进程,问题解决。
三、总结
Git原则上是支持多进程同步操作资源的,但是如果出现了崩溃,就会出现这样那样的问题,建议同一时间还是只打开一个Git进程进行版本管理比较好。
相关文章推荐
- Git 使用中显示“Another git process seems to be running in this repository...”问题解决
- Git 使用中显示“Another git process seems to be running in this repository...”的提示问题解决办法
- 使用Git 出现 Another git process seems to be running in this repository...
- Git 提交错误: Another git process seems to be running in this repository, e.g. .... 解决方案
- git 提交失败git error Another git process seems to be running in this repository
- git error Another git process seems to be running in this repository
- Another git process semms to be running in this repository, e.g. an editor opened by ‘git commit’. P
- Git操作失败并提示Another git process seems to be running in this......
- kubuntu之another application seems to be using the package system at this time问题即muon无法安装更新的问题
- 解决‘tools.jar’ seems to be not in android studio classpath 问题
- 使用Mono Cecil 动态获取运行时数据 (Atribute形式 进行注入 用于写Log) [此文报考 xxx is declared in another module and needs to be imported的解决方法]-摘自网络
- ArcGIS 中使用 zoomToEnvelope 不能完整显示区域问题的解决办法
- 虚拟机出现“This virtual machine appears to be in use”错误的解决办法
- 安装android studio 出现的路径问题 tools.jar' seems to be not in Android Studio classpath
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- Ubuntu下使用ap-hotspot出现“Another process is already running"问题的解决方案
- Ubuntu下使用ap-hotspot出现“Another process is already running"问题的解决方案
- Android Studio安装后'tools.jar' seems to be not in Android Studio classpath.的问题
- git使用问题解决----warning: LF will be replaced by CRLF
- This generally means that another instance of this process was already running or is hung in the debugger