[翻译]  Error Killed: 9 after command “git add .”

[CHINESE]  错误被杀:命令“git add”后9。


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:

我做“git add”时遇到问题。我收到错误消息“Killed:9”。如果我再试一次“git add”。我收到了另一个错误:

fatal: Unable to create './crmeasy/.git/index.lock': File exists.

致命:无法创建'./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.

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?

如果我删除./.git/index.lock文件并再试一次,我会收到相同的错误周期。我尝试提交新的空Django项目virtualenv目录。我怎么能解决这个问题?

1 个解决方案

#1


4  

This happens if you are adding your virtualenv to git.

如果你要将你的virtualenv添加到git,就会发生这种情况。

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

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


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
© 2014-2018 ITdaan.com 粤ICP备14056181号