A lock file already exists in the repository, which blocks this operation from completing
Just delete the file called index.lock which is in the .git folder. After you delete it, try to commit again. Steps Navigate to the desired folder in your file explorer Go to folder options and tick on “Show Hidden Files” (this might have a different name depending on your OS) There will be a .git … Read more