I also added node_modules, and then quickly ctrl c to stop it during execution. Then I want to use $git reset HEAD to roll back or add it again. The following error is displayed. It seems to be locked somewhere. How can I solve it?
Check this link
Try deleting .git/index.lock this file
.git/index.lock
Check this link
Try deleting
.git/index.lock
this file