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
source share