Git add command doesn't work and continues to work

I run the command:

git add . 

and get:

 Killed: 9 

It stops the execution of any git commands with locking.

What's wrong with my git, I tried rebooting by deleting the directory and starting with a new repo.

+6
source share
2 answers

I managed to solve the same problem by adding things (which should not be in Git) to .gitignore . In my particular case, there was a subdirectory in which there was a directory of Python virtual virtual machines.

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

+22
source

Same issue here, another solution (iOS project):

I did pod update in my project, but canceled it with ctrl+c . After that, all my git commands failed with

 Killed: 9 

I had to restart my pod update and complete it and then remove the git lock with

 rm .git/index.lock 
+1
source

Source: https://habr.com/ru/post/1011934/


All Articles