错误被杀:命令"git add"后9.

Cos*_*ied 8 git django virtualenv

我做"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.
Run Code Online (Sandbox Code Playgroud)

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

Vin*_*oft 8

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

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