【发布时间】:2017-10-12 19:02:54
【问题描述】:
我在执行“git add”时遇到问题。我收到一条错误消息“Killed: 9”。如果我再试一次“git add”。我收到另一个错误:
致命:无法创建“./crmeasy/.git/index.lock”:文件存在。
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 文件并重试,我会收到相同的错误周期。 我尝试提交新的空 Django 项目 virtualenv 目录。我该如何解决这个问题?
【问题讨论】:
-
我找到了解决方案!我已将 venv dir(我的 virtualenv)添加到 .gitignore 中,然后添加并提交所有其他文件。
-
“Killed: 9”消息通常表示您的内存已用完(包括虚拟内存/交换空间)。如果在 Linux 上,请搜索有关“OOM 杀手”(OOM = Out Of Memory)的问题。
标签: django git virtualenv