git add命令失败并继续运行 [英] git add command fails and keeps running

查看:148
本文介绍了git add命令失败并继续运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行命令:

git add .

并获得:

Killed: 9

这使我无法运行任何带锁的git命令.

It stops me running any git commands with a lock.

我的git有什么问题,我尝试过重新启动,删除目录并从新的仓库开始.

What is wrong with my git, I've tried rebooting, removing the directory and starting over with a new repo.

推荐答案

我能够通过在.gitignore中添加一些内容(不应在Git中使用)来解决相同的问题.在我的特定情况下,有一个嵌套目录,其中包含一个Python virtualenv目录.

I was able to solve the same issue by adding things (that should not be in Git) to .gitignore. In my specific case, there was a nested directory which had a Python virtualenv directory.

venv/添加到我的.gitignore并提交后,我终于能够提交该目录.

After adding venv/ to my .gitignore and committing, I was finally able to commit the directory.

这篇关于git add命令失败并继续运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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