码迷,mamicode.com
首页 > 其他好文 > 详细

If no other git process is currently running, this probably means a git process crashed in this repo

时间:2017-06-30 22:14:52      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:命令显示   osi   continue   repo   文件夹   隐藏   this   pos   操作   

今天git突然崩溃,崩溃时正在使用创建的新分支。等到重新进入,用git checkout master命令显示

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

解决方案:

  把仓库目录里的.git/index.lock文件(文件是隐藏的)删除就可以了。删除index.lock不会影响Git使用。是说index文件被锁住了,但是还有一个index文件要进行操作。

  一个仓库配有一个.git文件夹,在这个文件夹里面生成了一个index.lock文件,导致index文件不能被操作,所以把index.lock删除就ok

If no other git process is currently running, this probably means a git process crashed in this repo

标签:命令显示   osi   continue   repo   文件夹   隐藏   this   pos   操作   

原文地址:http://www.cnblogs.com/a666/p/7100711.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!