GIT:/.git/index.lock':文件存在 [英] GIT: /.git/index.lock': File exists

查看:2007
本文介绍了GIT:/.git/index.lock':文件存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的git repos有一个问题。我一直收到以下错误:

 致命:无法创建'v:/path/to/files/.git/index .lock':文件存在。 

如果当前没有其他git进程正在运行,这可能意味着
git进程早些时候在此存储库中崩溃。确保没有其他的git
进程正在运行,并手动删除文件以继续。

我试过了: rm -f ./.git/index.lock按照stackoverflow上的另一个线程,但我每次都得到这个错误: rm:无法取消链接`./.git/index.lock':权限被拒绝



当我关闭aptana(我在终端中使用git)时,我无法删除该文件。



任何想法如何解决这个问题?



另外需要注意的是,当我偶尔进行commit时,这个git repo非常慢(它允许我每10次尝试一次)



谢谢

解决方案

这个问题最终成为Aptana,每当我运行它时,当我尝试在git中提交时发生此错误。



我停止使用aptana studio,并且我不再有这个问题。

I am having a constant issue with one of my git repos. I keep getting the following error:

    fatal: Unable to create 'v:/path/to/files/.git/index.lock': File exists.

    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.

I have tried: rm -f ./.git/index.lock as per another thread on stackoverflow but I get this error each time: rm: cannot unlink `./.git/index.lock': Permission denied

When I close down aptana (I am using git in the terminal) I cannot delete the file still.

Any ideas how to get around this?

Another thing to note is this git repo is very slow when I do occasionally get to commit within it (it allows me every 10 tries or so)

Thanks

解决方案

The issue ended up being Aptana, everytime I ran this it would cause this error when I tried to commit in git.

I stopped using aptana studio and I don't have this issue anymore.

这篇关于GIT:/.git/index.lock':文件存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆