3
$ git commit -m "45"
fatal: Unable to create 'F:/SoftifyBD/Projects/proj-4/CMS_Latest/contentmanagementsystem/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. enter image description here

Rahul Bhobe
  • 4,165
  • 4
  • 17
  • 32
  • 1
    Does this answer your question? [Git is not working properly. git commit -m "45" or git reset --hard or others not working. What should I do now?](https://stackoverflow.com/questions/62977204/git-is-not-working-properly-git-commit-m-45-or-git-reset-hard-or-others-no) – evolutionxbox Jul 19 '20 at 09:26

1 Answers1

13

When I faced the same problem. I found a solution and it is
rm -f ./.git/index.lock
Please, try it. Thank you...

Amar Anondo
  • 662
  • 10
  • 16