Another git process seems to be running in this repository, e.g. Git使用过程中报错。。

今天使用git的时候,电脑卡机了,然后我就强制终止了git小乌龟。再过一会我拉取代码,就报错了,内容如题。

其实解决的办法很简单,直接删除 .git 文件夹内的 index.lock 文件就可以了。

友情提示:使用git工具的过程中,最好不要轻易的强制杀掉进程,不然会导致很多莫名其妙的错误。

参考博客: 

http://blog.csdn.net/qq_32193151/article/details/70792594

猜你喜欢

转载自blog.csdn.net/weixin_39378610/article/details/81300991