you need to delete .git\index.lock (check by git update-index --really-refresh), and it's as easy as running rm .\.git\index.lock on Windows or the correct command for your OS. Then use git commands as normal.
.git\index.lock
git update-index --really-refresh
rm .\.git\index.lock
git