1 Answer
Inorder to prevent from this error follow the procedure
rm .git/index
git add .
or
mv .git/index .git/index.backup
git add .
Your Answer
x