【发布时间】:2021-08-12 16:29:59
【问题描述】:
首先,这不是重复的:
好的,这是我的错误:
Unable to create '': File exists.
Another git process seems 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
may have crashed in this repository earlier:
remove the file manually to continue.
Updating ...
Pull operation failed.
我做了什么:
在 Visual Studio 中,我尝试拉取并更新分支,得到了上述错误。 谷歌了一下,在Another git process seems to be running in this repository 找到了解决方案,进入命令行(不是 git bash),尝试删除 index.lock 失败,进入 git bash,尝试删除 index.lock,没有错误索引仍然存在(我猜测它不是 index.lock 只是索引)。 去了 Visual Studio,试图拉动更改,不成功,得到同样的错误,再次谷歌搜索并找到其他两个解决方案,我找到了我已经尝试过的 how to terminate git process which is running currently?,然后它说它是 @ 的副本987654323@ 这是找不到页面。 问题是,我现在该怎么办?
顺便说一句,无法创建的文件不存在,index.lock 也不存在,因此删除它不会对问题进行排序。我认为某处有错误,我只是不知道在哪里。
【问题讨论】:
-
它很可能是重复的,但错误消息
Unable to create '': File exists.表示它很可能不是。这里的两个单引号内应该有一些文件名。 (缺少文件名可能表明您的 Git 安装存在错误,或者 Visual Studio 以某种方式破坏了正确的错误消息。)
标签: git visual-studio git-bash pull