File exists.If no other git process is currently running,

Unable to create 'C:/Users/zc/IdeaProjects/helloWorld-git/.git/index.lock': File exists.
  If no other git process is currently running, this probably means a
  git process crashed in this repository earlier. Make sure no other git
  process is running and remove the file manually to continue.

git锁住了,代码Revert不了,只要把

'C:/Users/zc/IdeaProjects/helloWorld-git/.git/index.lock'

这个文件删掉即可

原文地址:https://www.cnblogs.com/zhangcheng1/p/12016892.html