错误杀死:命令“git add”后的9。 [英] Error Killed: 9 after command "git add ."

查看:746
本文介绍了错误杀死:命令“git add”后的9。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行git add时遇到问题。我收到一条错误消息Killed:9。如果我再试一次git add。我收到另一个错误:

致命:无法创建'./crmeasy/.git/index.lock':存在文件。

 另一个git过程似乎在这个仓库中运行,
eg一个由'git commit'打开的编辑器。请确保所有
进程都已终止,然后重试。
如果它仍然失败,git进程可能在之前的
仓库中崩溃:手动删除该文件以继续。

如果我删除./.git/index.lock文件并重试,我会收到相同的循环错误。
我尝试提交新的空Django项目virtualenv目录。如何解决这个问题?

解决方案

如果您将virtualenv添加到git,会发生这种情况。



解决方案:在您的 .gitignore 文件中添加virtualenv的路径。
现在您可以 git add --all


I have a problem when I do "git add ." I received an error message "Killed: 9". If I try again "git add ." I received an another error:

fatal: Unable to create './crmeasy/.git/index.lock': 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.

If I delete ./.git/index.lock file and try again I receive the same cycle of errors. I try to commit new empty Django project virtualenv dir. How could I solve the issue?

解决方案

This happens if you are adding your virtualenv to git.

Solution: Add the path to your virtualenv in your .gitignore file. Now you can git add --all

这篇关于错误杀死:命令“git add”后的9。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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