相关疑难解决方法(0)

GIT:/.git/index.lock':文件存在

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

    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.
Run Code Online (Sandbox Code Playgroud)

我已经尝试过:rm -f ./.git/index.lock根据stackoverflow上的另一个线程但我每次都会收到此错误:rm:无法取消链接`./.git/index.lock':权限被拒绝

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

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

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

谢谢

git

16
推荐指数
2
解决办法
4万
查看次数

标签 统计

git ×1