如何结束在另一个仓库中运行的另一个git进程?
问题描述:
我在犯了几个大文件夹(角和Django的)第一次尝试后,git的回应:如何结束在另一个仓库中运行的另一个git进程?
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.
曾任建议:
消除在git的文件夹中的index.lock。
我已经做到了这一点,但第二次,我重新提交“混帐添加”。作为我的混帐推起源主程序的一部分,index.lock文件重新出现在git的
是否有另一种解决方案?发生了什么事情可以保证?
我试着在评论链接的所有建议
我与这方面的工作:
git version 2.13.5 (Apple Git-94)
答
在我而言,index.lock不会删除。相反,我发现我的Django的一个文件夹缺少的.gitignore,所以我创建了一个,其中包括以下文件:
include
lib
include
bin
.vscode
您可能需要包括更多或更少,这取决于..显然,我正在试图推一个不赞同git的文件。
您是否尝试过https://stackoverflow.com/q/9282632/6309中的所有解决方案?你在Windows上吗?你的git版本是什么? – VonC